JForestor (5) [Avatar] Offline
#1
Thanks in advance.

My panel is not updating with the check box. It merely shows the items contained in the panel. Is there something wrong with my code or is the text incorrect? Here is my code:


var App = new Ext.Application({
name: 'MgtApp',
useLoadMask: true,
launch: function () {




var loginPanel = new Ext.Panel({

id: "loginPanel",

fullscreen: true,

items: [

{

xtype: "textfield",

label: "Login",

placeHolder: "Enter Username Here"

}, {

xtype: "textfield",

label: "Organization",

itemId: "orgField",

placeHolder: "Enter Your Organization Here"

}, {

xtype: "textfield",

label: "Password",

placeHolder: "Enter Password Here"

}
]
});


Ext.getCmp("loginPanel").add({

xtype: "checkbox",

label: "Remember"

});

Ext.getCmp("loginPanel").doLayout();




}

});
JForestor (5) [Avatar] Offline
#2
Re: Page 72 example not working
To fix change "checkbox" to "checkboxfield"