| |
Button(String/HTMLElement/Element renderTo, Object config) |
Button |
| Create a new button |
| |
addListener(String eventName, Function handler, [Object options]) : void |
Observable |
| Appends an event handler to this component |
| |
destroy() : void |
Button |
| Destroys this Button. |
| |
disable() : void |
Button |
| Disable this button |
| |
enable() : void |
Button |
| Enable this button |
| |
fireEvent(String eventName, Object... args) : Boolean |
Observable |
| Fires the specified event with the passed parameters (minus the event name). |
| |
focus() : void |
Button |
| Focus the button |
| |
getEl() : Ext.Element |
Button |
| Returns the buttons element |
| |
getText() : String |
Button |
| Get the text for this button |
| |
hide() : void |
Button |
| Hide this button |
| |
on(String eventName, Function handler, [Object options]) : void |
Observable |
| Appends an event handler to this element (shorthand for addListener) |
| |
purgeListeners() : void |
Observable |
| Removes all listeners for this object |
| |
removeListener(String eventName, Function handler, [Object scope]) : void |
Observable |
| Removes a listener |
| |
setHandler(Function handler, [Object scope]) : void |
Button |
| Sets this buttons click handler |
| |
setText(String text) : void |
Button |
| Set this buttons text |
| |
setVisible(Boolean visible) : void |
Button |
| Convenience function for boolean show/hide |
| |
show() : void |
Button |
| Show this button |
| |
toggle([Boolean state]) : void |
Button |
| If a state it passed, it becomes the pressed state otherwise the current state is toggled. |
| |
un(String eventName, Function handler, [Object scope]) : void |
Observable |
| Removes a listener (shorthand for removeListener) |
disabled
public Boolean disabled
Read-only. True if this button is disabled
This property is defined by Button.
hidden
public Boolean hidden
Read-only. True if this button is hidden
This property is defined by Button.
pressed
public Boolean pressed
Read-only. True if this button is pressed (toggle mode only)
This property is defined by Button.
addListener
public function addListener(String eventName, Function handler, [Object options])
Appends an event handler to this component
destroy
public function destroy()
This method is defined by Button.
disable
public function disable()
This method is defined by Button.
enable
public function enable()
This method is defined by Button.
fireEvent
public function fireEvent(String eventName, Object... args)
Fires the specified event with the passed parameters (minus the event name).
focus
public function focus()
This method is defined by Button.
getEl
public function getEl()
Returns the buttons element
This method is defined by Button.
getText
public function getText()
Get the text for this button
This method is defined by Button.
hide
public function hide()
This method is defined by Button.
on
public function on(String eventName, Function handler, [Object options])
Appends an event handler to this element (shorthand for addListener)
purgeListeners
public function purgeListeners()
Removes all listeners for this object
removeListener
public function removeListener(String eventName, Function handler, [Object scope])
setHandler
public function setHandler(Function handler, [Object scope])
Sets this buttons click handler
This method is defined by Button.
setText
public function setText(String text)
This method is defined by Button.
setVisible
public function setVisible(Boolean visible)
Convenience function for boolean show/hide
This method is defined by Button.
show
public function show()
This method is defined by Button.
toggle
public function toggle([Boolean state])
If a state it passed, it becomes the pressed state otherwise the current state is toggled.
This method is defined by Button.
un
public function un(String eventName, Function handler, [Object scope])
Removes a listener (shorthand for removeListener)
disabled
disabled : Boolean
True to start disabled
This config option is defined by Button.
enableToggle
enableToggle : Boolean
True to enable pressed/not pressed toggling
This config option is defined by Button.
handler
handler : Function
A function called when the button is clicked (can be used instead of click event)
This config option is defined by Button.
hidden
hidden : Boolean
True to start hidden
This config option is defined by Button.
minWidth
minWidth : Number
The minimum width for this button (used to give a set of buttons a common width)
This config option is defined by Button.
pressed
pressed : Boolean
True to start pressed (only for toggle buttons)
This config option is defined by Button.
repeat
repeat : Boolean/Object
True to repeat fire the click event while the mouse is down. This can also be an Ext.util.ClickRepeater config object.
This config option is defined by Button.
scope
scope : Object
The scope of the handler
This config option is defined by Button.
text
text : String
The button text
This config option is defined by Button.
toggleGroup
toggleGroup : String
The group this toggle button is a member of (only 1 per group can be pressed)
This config option is defined by Button.
tooltip
tooltip : String
The title attribute of the button
This config option is defined by Button.