javascript - Creating a window in extjs -
i have code:
ext.define('innerwindow', { extend: 'ext.window.window', title: 'title', height: 200, width: 500, modal: true }); tb = ext.getcmp('head-toolbar'); tb.add({ text: 'export', menu: ext.create('ext.menu.menu', { items: [ { text: 'export', handler: function () { var win = new innerwindow(); win.show(); } } ] }) }); it creates dropdown has value called 'export'. have managed make that, when click 'export', window. window empty. have been looking for, , unable find, how create window has text inside, , options (dropdown box), , labels etc. more precisly, want window 1 attached. i'm sure can find examples on how create this, don't know search for. searching on "extjs window" , similar words, didnt bring me i'm looking for, nor looking @ senshas homepage (which has lots of brilliant examples).
can me out? thanks

in code change
var win = new innerwindow(); to
var win = ext.create('innerwindow'); then define window form inside:
ext.define('innerwindow', { extend: 'ext.window.window', title: 'title', height: 200, width: 500, modal: true, items: [{ xtype: 'form', items: [{ xtype: 'textfield', fieldlabel: 'age', name: 'age' },{ xtype: 'textfield', fieldlabel: 'height', name: 'height' }], fbar: [{ text: 'submit', formbind: true, itemid: 'submit' }] }] }); the documentation here: form, textfield, combobox. start reading the guides. must read docs understand. extjs doc written.
Comments
Post a Comment