Roo.util.Observable Roo.Button Roo.SplitButton Roo.Toolbar.SplitButton
Package: | Roo.Toolbar |
Defined In: | Roo/Toolbar.js. |
Class: | SplitButton |
Extends: | Roo.SplitButton |
Options | Defined By | |
---|---|---|
arrowHandler : Function
A function called when the arrow button is clicked (can be used instead of click event)
A function called when the arrow button is clicked (can be used instead of click event)
|
Roo.SplitButton | |
arrowTooltip : String
The title attribute of the arrow
The title attribute of the arrow
|
Roo.SplitButton | |
clickEvent : String
The type of event to map to the button's event handler (defaults to 'click')
The type of event to map to the button's event handler (defaults to 'click')
|
Roo.Button | |
cls : String
A CSS class to apply to the button's main element.
A CSS class to apply to the button's main element.
|
Roo.Button | |
disabled : Boolean
True to start disabled (defaults to false)
True to start disabled (defaults to false)
|
Roo.Button | |
enableToggle : Boolean
True to enable pressed/not pressed toggling (defaults to false)
True to enable pressed/not pressed toggling (defaults to false)
|
Roo.Button | |
handleMouseEvents : Boolean
False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)
False to disable visual cues on mouseover, mouseout and mousedown (defaults to true)
|
Roo.Button | |
handler : Function
A function called when the button is clicked (can be used instead of click event)
A function called when the button is clicked (can be used instead of click event)
|
Roo.Button | |
hidden : Boolean
True to start hidden (defaults to false)
True to start hidden (defaults to false)
|
Roo.Button | |
icon : String
The path to an image to display in the button (the image will be set as the background-image
CSS property of the button by default, so if you want a mixed icon/text button, set cls:"x-btn-text-icon") The path to an image to display in the button (the image will be set as the background-image
CSS property of the button by default, so if you want a mixed icon/text button, set cls:"x-btn-text-icon") |
Roo.Button | |
iconCls : String
A css class which sets a background image to be used as the icon for this button (defaults to undefined).
A css class which sets a background image to be used as the icon for this button (defaults to undefined).
|
Roo.Button | |
listeners : Object
list of events and functions to call for this object,
For example :
list of events and functions to call for this object,
For example :
|
Roo.util.Observable | |
menu : Mixed
Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).
Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined).
|
Roo.Button | |
menuAlign : String
The position to align the menu to (see {link Roo.ElementalignTo} for more details, defaults to 'tl-bl?').
The position to align the menu to (see {link Roo.ElementalignTo} for more details, defaults to 'tl-bl?').
|
Roo.Button | |
minWidth : Number
The minimum width for this button (used to give a set of buttons a common width)
The minimum width for this button (used to give a set of buttons a common width)
|
Roo.Button | |
pressed : Boolean
True to start pressed (only if enableToggle = true)
True to start pressed (only if enableToggle = true)
|
Roo.Button | |
renderTo : String/HTMLElement/Element
The element to append the button to
The element to append the button to
|
Roo.Button | |
repeat : Boolean/Object
True to repeat fire the click event while the mouse is down.
True to repeat fire the click event while the mouse is down. This can also be
an {link Roo.util.ClickRepeater} config object (defaults to false). |
Roo.Button | |
scope : Object
The scope of the handler
The scope of the handler
|
Roo.Button | |
tabIndex : Number
The DOM tabIndex for this button (defaults to undefined)
The DOM tabIndex for this button (defaults to undefined)
|
Roo.Button | |
template : Roo.Template
(Optional)
An {link Roo.Template} with which to create the Button's main element. (Optional)
An {link Roo.Template} with which to create the Button's main element. This Template must contain numeric substitution parameter 0 if it is to display the tRoo property. Changing the template could require code modifications if required elements (e.g. a button) aren't present. |
Roo.Button | |
text : String
The button text
The button text
|
Roo.Button | |
toggleGroup : String
The group this toggle button is a member of (only 1 per group can be pressed, only
applies if enableToggle = true) The group this toggle button is a member of (only 1 per group can be pressed, only
applies if enableToggle = true) |
Roo.Button | |
tooltip : String/Object
The tooltip for the button - can be a string or QuickTips config object
The tooltip for the button - can be a string or QuickTips config object
|
Roo.Button | |
tooltipType : String
The type of tooltip to use.
The type of tooltip to use. Either "qtip" (default) for QuickTips or "title" for title attribute.
|
Roo.Button | |
type : String
The button's type, corresponding to the DOM input element type attribute.
The button's type, corresponding to the DOM input element type attribute. Either "submit," "reset" or "button" (default).
|
Roo.Button |
Method | Defined By | |
---|---|---|
new Roo.Toolbar.SplitButton
(Object config)
Create a new Roo.Toolbar.SplitButton
Create a new Roo.Toolbar.SplitButton
|
||
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
destroy
()
Removes and destroys this button
Removes and destroys this button
|
Roo.Toolbar.SplitButton | |
disable
()
Disable this button
Disable this button
|
Roo.Button | |
enable
()
Enable this button
Enable this button
|
Roo.Button | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
focus
()
Focus the button
Focus the button
|
Roo.SplitButton | |
getEl
()
:
Roo.Element
Returns the button's underlying element
Returns the button's underlying element
|
Roo.Button | |
getText
()
:
String
Gets the text for this button
Gets the text for this button
|
Roo.Button | |
Roo.util.Observable | ||
hide
()
Hides this button
Hides this button
|
Roo.Toolbar.SplitButton | |
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
purgeListeners
()
Removes all listeners for this object
Removes all listeners for this object
|
Roo.util.Observable | |
Roo.util.Observable | ||
Roo.SplitButton | ||
setDisabled
(Boolean enabled)
Convenience function for boolean enable/disable
Convenience function for boolean enable/disable
|
Roo.Button | |
Roo.SplitButton | ||
setText
(String text)
Sets this button's text
Sets this button's text
|
Roo.Button | |
setVisible
(Boolean visible)
Convenience function for boolean show/hide
Convenience function for boolean show/hide
|
Roo.Button | |
show
()
Shows this button
Shows this button
|
Roo.Toolbar.SplitButton | |
toggle
(Boolean state)
If a state it passed, it becomes the pressed state otherwise the current state is toggled.
If a state it passed, it becomes the pressed state otherwise the current state is toggled.
|
Roo.Button | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
arrowclick (SplitButton this, EventObject e)
Fires when this button's arrow is clicked
Fires when this button's arrow is clicked
|
Roo.SplitButton | |
click (Button this, EventObject e)
Fires when this button is clicked
Fires when this button is clicked
|
Roo.Button | |
mouseout (Button this, Event e)
Fires when the mouse exits the button
Fires when the mouse exits the button
|
Roo.Button | |
mouseover (Button this, Event e)
Fires when the mouse hovers over the button
Fires when the mouse hovers over the button
|
Roo.Button | |
render (Button this)
Fires when the button is rendered
Fires when the button is rendered
|
Roo.Button | |
toggle (Button this, Boolean pressed)
Fires when the "pressed" state of this button changes (only if enableToggle = true)
Fires when the "pressed" state of this button changes (only if enableToggle = true)
|
Roo.Button |