1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    10
    Vote Rating
    0
    willyaguirre is on a distinguished road

      0  

    Default Problem with splitbutton

    Problem with splitbutton


    Have a look please

    http://pastebin.com/bmjDtK26

  2. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    10
    Vote Rating
    0
    willyaguirre is on a distinguished road

      0  

    Default Problem with splitbutton

    Problem with splitbutton


    Have a look please

    http://pastebin.com/bmjDtK26

  3. #3
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi
    Try the following Code.

    You just need to define menu config of the split button rather than items of split button(that I saw in your example(http://pastebin.com/bmjDtK26).

    Code:
    Ext.create('Ext.button.Split', {
        renderTo: Ext.getBody(),
        text: 'Options',
        // handle a click on the button itself
        handler: function() {
            alert("The button was clicked");
        },
    	menu: new Ext.menu.Menu({
    		width: 120,
    		items: [
    			{
    				xtype: 'menuitem',
    				text: 'Menu Item'
    			},
    			{
    				xtype: 'menuitem',
    				text: 'Menu Item'
    			},
    			{
    				xtype: 'menuitem',
    				text: 'Menu Item'
    			}
    		]
    	})
    });
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

Tags for this Thread