View Full Version : Regarding textfield input button under Ext.tree.Panel

16 Jul 2013, 1:32 AM
Totally new to extjs need help in understanding below stuff.
Developing a instant message in extjs under Ext.tree.Panel

var OnlineUserTreepanel = Ext.create('Ext.tree.Panel', { id : 'OnlineUserTreepanel', trackOver:true, forceFit : true, border: false, renderTo :'OnlineUserTreepanel', title:'Instant Messenger', rootVisible : true, dockedItems: [{ xtype: 'toolbar', dock: 'bottom', items: [{ xtype: 'field', xtype: 'textfield', name : 'text', id: 'userinput', }// items , { xtype : 'button', text : 'Submit', }] // items }] // dockedItems });How to write a handler which send text message on button in Ext.tree.Panel.
Using below example i am started writing this code.
Any help really appreciated.

17 Jul 2013, 1:33 PM
Are you writing an MVC app and capturing the click event in a controller's control() (or listen) method currently?