Class YAHOO.ext.ToolbarButton
Package: | YAHOO.ext |
Class: | ToolbarButton |
Extends: | Object |
Defined In: | Toolbar.js |
A toolbar button. The config has the following options:
- className - The CSS class for the button. Use this to attach a background image for an icon.
- text - The button's text
- tooltip - The buttons tooltip text
- click - function to call when the button is clicked
- mouseover - function to call when the mouse moves over the button
- mouseout - function to call when the mouse moves off the button
- scope - The scope of the above event handlers
Public Properties
This class has no public properties.
Public Methods
|
ToolbarButton(Object config ) |
ToolbarButton |
|
|
disable() : void |
ToolbarButton |
Disable this button |
|
enable() : void |
ToolbarButton |
Enable this button |
|
hide() : void |
ToolbarButton |
Hide this button |
|
isDisabled() : Boolean |
ToolbarButton |
Returns true if this button is disabled. |
|
setHandler(Function click , [Object scope ]) : void |
ToolbarButton |
Sets this buttons click handler |
|
setText(String text ) : void |
ToolbarButton |
Set this buttons text |
|
setTooltip(String text ) : void |
ToolbarButton |
Set this buttons tooltip text |
|
show() : void |
ToolbarButton |
Show this button |
Public Events
This class has no public events.
Constructor Details
ToolbarButton
public function ToolbarButton(Object config
)
Method Details
disable
public function disable()
This method is defined by ToolbarButton.
enable
public function enable()
This method is defined by ToolbarButton.
hide
public function hide()
This method is defined by ToolbarButton.
isDisabled
public function isDisabled()
Returns true if this button is disabled.
This method is defined by ToolbarButton.
setHandler
public function setHandler(Function click
, [Object scope
])
Sets this buttons click handler
This method is defined by ToolbarButton.
setText
public function setText(String text
)
This method is defined by ToolbarButton.
setTooltip
public function setTooltip(String text
)
Set this buttons tooltip text
This method is defined by ToolbarButton.
show
public function show()
This method is defined by ToolbarButton.
yui-ext - Copyright © 2006 Jack Slocum. |
Yahoo! UI - Copyright © 2006 Yahoo! Inc.
All rights reserved.