Results 1 to 3 of 3

Thread: Property missing in Ext.button.Button

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Touch Premium Member
    Join Date
    Jul 2011
    Posts
    4
    Vote Rating
    0
      0  

    Default Property missing in Ext.button.Button

    Hi,

    In Ext Designer 1.2.1-27 the buttons property 'action' is missing.

    Is this an accidental omission ?

    Thanks.

    Paulo.

  2. #2
    devshi
    Guest

    Default

    I took a look at the Ext JS 4 documentation for Ext.button.Button and I do not see any mention of 'action' property. See http://docs.sencha.com/ext-js/4-0/#!....button.Button

  3. #3
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
      0  

    Default

    I think Paulo is referring to an example on the docs in Ext.Action

    Code:
        // Define the shared Action.  Each Component below will have the same
        // display text and icon, and will display the same message on click.
        var action = new Ext.Action({
            text: 'Do something',
            handler: function(){
                Ext.Msg.alert('Click', 'You did something.');
            },
            iconCls: 'do-something',
            itemId: 'myAction'
        });
    
        var panel = new Ext.panel.Panel({
            title: 'Actions',
            width: 500,
            height: 300,
            tbar: [
                // Add the Action directly to a toolbar as a menu button
                action,
                {
                    text: 'Action Menu',
                    // Add the Action to a menu as a text item
                    menu: [action]
                }
            ],
            items: [
                // Add the Action to the panel body as a standard button
                new Ext.button.Button(action)
            ],
            renderTo: Ext.getBody()
        });
    Currently we don't support this.
    Phil Strong
    @philstrong

Posting Permissions

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