Results 1 to 3 of 3

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

  1. #1

    Default Cannot use array as items for create toolbar is there any other way in 4.2

    i cannot use array as items for create toolbar is there any other way in 4.2..previous 4.0 it ok.

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


  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    What if you do:

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

  3. #3

    Default

    Nice it working..why i dont think of that.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •