You can set a callback handler in the builder and add the onClick property to the json definition. For example { "type": "Button", "onClick": {"source": "button1", param": "xyz"}, ... } . The callback implementation takes the additional parameters which can then be evaluated. ProteusContext context = proteusManager.getProteus().createContextBuilder(this) .setLayoutManager(layoutManager) .setCallback(callback)
What about clickable items.
Check out the project here goo.gl/SyAuoR
Very Cool!, But How about Button, Input components with it's data and callBack?
A very good presentation..
What about callBacks ?
You can set a callback handler in the builder and add the onClick property to the json definition. For example { "type": "Button", "onClick": {"source": "button1", param": "xyz"}, ... } . The callback implementation takes the additional parameters which can then be evaluated.
ProteusContext context = proteusManager.getProteus().createContextBuilder(this)
.setLayoutManager(layoutManager)
.setCallback(callback)
Superb!
this is really cool!
Awesome!!
Now data is cheap :p