Nesting FormPanel in Modal Window
What is the best way about going about nesting a Ext.form.Panel in a modal popup
Code:
var popup = Ext.create('Ext.Panel', {
floating : true,
modal : true,
centered : true,
width : 300,
height : 400,
items : [{
docked : 'top',
xtype : 'toolbar',
title : 'Add Borrower'
}, {
xtype : 'formpanel',
items : [{
xtype : 'textfield',
name : 'hello',
label : 'hello'
}]
}],
scrollable : true
});
popup.show()
Doesn't show the fields, renders the window with toolbar. If I make the xtype to be fieldset it draws the textfield. If I nest a fieldset xtype with the textfield in it, also doesn't work.