The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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"