PDA

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



sushanthreddy
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
http://i.stack.imgur.com/Un4lk.png

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.
https://github.com/fgheorghe/ChatJS/blob/bb4288697bad6ea4a8d3dff24a487c77bbabd125/chat_window.js
Any help really appreciated.

slemmon
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?