View Full Version : ToolbarButton config disabled

2 Feb 2007, 6:49 AM
Adding 'disabled: true' to the config of a ToolbarButton doesn't work.

Reason: The ytb-button-disabled class isn't added in setDisabled because this.el isn't created yet.
Solution: In YAHOO.ext.ToolbarButton.init move the call to setDisabled below the this.el assignment.

2 Feb 2007, 4:06 PM
The new refactored button supports this and much more ;)