PDA

View Full Version : ToolbarButton config disabled



Condor70
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.

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