Results 1 to 3 of 3

Thread: Handler doesn't work in the button menu if table layout is given for the menu.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2007
    Posts
    4

    Default Handler doesn't work in the button menu if table layout is given for the menu.

    Ext.create('Ext.Button', {
    text: 'Click me',
    renderTo: Ext.getBody(),
    menuAlign: 't-b',
    menu: {
    layout: {
    type:'table',
    columns: 2
    },
    items: [{
    text: 'My Profile'
    }, {
    text: 'Logout',
    itemId: 'logout',
    handler: function() {
    alert("hello");
    }
    }]
    }
    });

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    The layout config for a menu is marked as private, so I'm guessing table layout is not supported.
    http://docs.sencha.com/extjs/6.2.1/c...tml#cfg-layout

  3. #3
    Sencha User
    Join Date
    May 2007
    Posts
    4

    Default

    Quote Originally Posted by Gary Schlosberg View Post
    The layout config for a menu is marked as private, so I'm guessing table layout is not supported.
    http://docs.sencha.com/extjs/6.2.1/c...tml#cfg-layout

    Ok, but only with this layout doesn't work, i you try with other work nice.

Similar Threads

  1. Replies: 3
    Last Post: 23 Aug 2018, 4:23 PM
  2. Replies: 4
    Last Post: 28 Aug 2015, 9:51 AM
  3. [FIXED] Button Menu: Selection in submenu doesn't close primary menu
    By lmastrodicasa in forum Ext 5: Bugs
    Replies: 1
    Last Post: 26 Nov 2014, 9:53 AM
  4. Replies: 1
    Last Post: 8 Aug 2012, 8:08 AM
  5. Mouse click does not work on menu items(when menu is rendered as context menu)
    By anilcs0405 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 3 Aug 2009, 5:55 AM

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
  •