PDA

View Full Version : Cannot use array as items for create toolbar is there any other way in 4.2



inabahtrg
18 Jul 2013, 11:13 PM
i cannot use array as items for create toolbar is there any other way in 4.2..previous 4.0 it ok.



var menu_array= new Array(MenuSystemSetup, MenuAdmin, MenuRegistration, MenuCourse, MenuAdvisory, MenuClass, MenuExec, Menulo, MenuSoft, MenuProg, MenuExam, MenuGrad, MenuCredX, MenuCredT, MenuTrans, MenuResult, MenuLogOut);
var myMenuBar2 = Ext.create('Ext.toolbar.Toolbar', {";
layout: { overflowHandler: 'Menu' },
items: [menu_array], border: false });

slemmon
23 Jul 2013, 7:52 AM
What if you do:

var myMenuBar2 = Ext.create('Ext.toolbar.Toolbar', {
layout: {
overflowHandler: 'Menu'
},
//items: [menu_array],
items: menu_array,
border: false
});

inabahtrg
24 Jul 2013, 9:15 PM
Nice it working..why i dont think of that.