-
2 Jan 2013 3:23 AM #1
Button action-connection with Arduino
Button action-connection with Arduino
Hello,
I am currently doing a poject with Arduino and I am making an user interface with Sencha Architect. I have to edit the button action with this code:
items: [ {
xtype: 'button',
ui: 'confirm',
text: 'LUZ 1 ON'
handler: function(button, event){
Ext.Ajax.request({
method: 'GET',
url: 'http://PUT ARDUINO IP/LUZ1ON',
useDefaultXhrHeader: false,
disableCaching: false }); }
},
However I can not add the red color code in Sencha Architect. Could someone tell me how I can get this code in Sencha Architect? Thank you very much.
-
2 Jan 2013 12:04 PM #2
Aaron Conran
@aconran
Sencha Architect Development Team
-
3 Jan 2013 7:02 AM #3
Thank you very much. I didn't see "handler" in the config pane.


Reply With Quote