-
15 Oct 2011 10:58 AM #1
Property missing in Ext.button.Button
Property missing in Ext.button.Button
Hi,
In Ext Designer 1.2.1-27 the button“s property 'action' is missing.
Is this an accidental omission ?
Thanks.
Paulo.
-
15 Oct 2011 5:25 PM #2devshiGuest
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
-
17 Oct 2011 6:14 AM #3
I think Paulo is referring to an example on the docs in Ext.Action
Currently we don't support this.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() });Phil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
Known Bugs in Architect Latest
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote