Key Point: Put the form in the window control Extdefine (& 039; JCYappviewAddUserForm & 039;, {extend: & 039; ExtwindowWindow & 039;, and put the form in the pop-up window alias: & 039; widgetaddUserForm & 039;, title: & 039; add & 039;, width:
Key point: the form must be placed in the window control.
Ext. define ('jcy. app. view. addUserForm ', {extend: 'ext. window. window ', // put the form in the pop-up Window alias: 'widget. addUserForm ', title: 'add', width: 360, // higher than the width of the Form. height: 230, layout: 'fit', modal: true, // enable the mask items: [{xtype: 'form', width: 350, height: 200, frame: true, items: [{xtype: 'textfield ', fieldLabel: 'number', name: 'num'}, {xtype: 'textfield ', fieldLabel: 'name', name: 'name'}, {xtype: 'textfield', fieldLabel: 'mailbox ', name: 'email'}], buttons: [{id: 'save', xtype: 'button ', text: 'Submit'}]});