Roo.util.Observable Roo.Component Roo.bootstrap.Component Roo.bootstrap.Button
Package: | Roo.bootstrap |
Defined In: | Roo/bootstrap/Button.js. |
Class: | Button |
Extends: | Roo.bootstrap.Component |
Options | Defined By | |
---|---|---|
actionMode : String
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el'
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el' |
Roo.Component | |
allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Whether the component can move the Dom node when rendering (defaults to true).
|
Roo.Component | |
badge : String
text for badge
text for badge
|
Roo.bootstrap.Button | |
can_build_overlaid : Boolean
True if element can be rebuild from a HTML page
True if element can be rebuild from a HTML page
|
Roo.bootstrap.Component | |
cls : String
css class
css class
|
Roo.bootstrap.Component | |
container_method : string
method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)
method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)
|
Roo.bootstrap.Component | |
dataId : string
cutomer id
cutomer id
|
Roo.bootstrap.Component | |
defaulton : Boolean
|
Roo.bootstrap.Button | |
disableClass : String
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
|
Roo.Component | |
disabled : Boolean
default false;
default false;
|
Roo.bootstrap.Button | |
glyphicon : String
Possible Values: Empty, adjust, align-center, align-justify, align-left, align-right, arrow-down, arrow-left, arrow-right, arrow-up, asterisk, backward, ban-circle, barcode, bell, bold, book, bookmark, briefcase, bullhorn, calendar, camera, certificate, check, chevron-down, chevron-left, chevron-right, chevron-up, circle-arrow-down, circle-arrow-left, circle-arrow-right, circle-arrow-up, cloud, cloud-download, cloud-upload, cog, collapse-down, collapse-up, comment, compressed, copyright-mark, credit-card, cutlery, dashboard, download, download-alt, earphone, edit, eject, envelope, euro, exclamation-sign, expand, export, eye-close, eye-open, facetime-video, fast-backward, fast-forward, file, film, filter, fire, flag, flash, floppy-disk, floppy-open, floppy-remove, floppy-save, floppy-saved, folder-close, folder-open, font, forward, fullscreen, gbp, gift, glass, globe, hand-down, hand-left, hand-right, hand-up, hd-video, hdd, header, headphones, heart, heart-empty, home, import, inbox, indent-left, indent-right, info-sign, italic, leaf, link, list, list-alt, lock, log-in, log-out, magnet, map-marker, minus, minus-sign, move, music, new-window, off, ok, ok-circle, ok-sign, open, paperclip, pause, pencil, phone, phone-alt, picture, plane, play, play-circle, plus, plus-sign, print, pushpin, qrcode, question-sign, random, record, refresh, registration-mark, remove, remove-circle, remove-sign, repeat, resize-full, resize-horizontal, resize-small, resize-vertical, retweet, road, save, saved, screenshot, sd-video, search, send, share, share-alt, shopping-cart, signal, sort, sort-by-alphabet, sort-by-alphabet-alt, sort-by-attributes, sort-by-attributes-alt, sort-by-order, sort-by-order-alt, sound-5-1, sound-6-1, sound-7-1, sound-dolby, sound-stereo, star, star-empty, stats, step-backward, step-forward, stop, subtitles, tag, tags, tasks, text-height, text-width, th, th-large, th-list, thumbs-down, thumbs-up, time, tint, tower, transfer, trash, tree-conifer, tree-deciduous, unchecked, upload, usd, user, volume-down, volume-off, volume-up, warning-sign, wrench, zoom-in, zoom-out |
Roo.bootstrap.Button | |
hideMode : String
How this component should hidden.
How this component should hidden. Supported values are
"visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display". Possible Values: display, visibility |
Roo.Component | |
href : String
empty or href
empty or href
|
Roo.bootstrap.Button | |
html : String
The button content
The button content
|
Roo.bootstrap.Button | |
inverse : Boolean
|
Roo.bootstrap.Button | |
isClose : Boolean
default false;
default false;
|
Roo.bootstrap.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 | |
name : string
Specifies name attribute
Specifies name attribute
|
Roo.bootstrap.Component | |
offtext : String
text for off toggle state
text for off toggle state
|
Roo.bootstrap.Button | |
ontext : String
text for on toggle state
text for on toggle state
|
Roo.bootstrap.Button | |
preventDefault : Boolean
default true
default true
|
Roo.bootstrap.Button | |
removeClass : Boolean
remove the standard class.
remove the standard class..
|
Roo.bootstrap.Button | |
size : String
Possible Values: lg, sm, xs |
Roo.bootstrap.Button | |
style : String
any extra css
any extra css
|
Roo.bootstrap.Component | |
tag : String
Possible Values: a, input, submit |
Roo.bootstrap.Button | |
target : String
target for a href.
target for a href. (_self|_blank|_parent|_top| other)
|
Roo.bootstrap.Button | |
theme : String
default
default
|
Roo.bootstrap.Button | |
toggle : Boolean
|
Roo.bootstrap.Button | |
tooltip : string
Text for the tooltip
Text for the tooltip
|
Roo.bootstrap.Component | |
weight : String
default
default
Possible Values: primary, success, info, warning, danger, link |
Roo.bootstrap.Button | |
xattr : Object
extra attributes to add to 'element' (used by builder to store stuff.
extra attributes to add to 'element' (used by builder to store stuff.)
|
Roo.bootstrap.Component |
Method | Defined By | |
---|---|---|
new Roo.bootstrap.Button
(Object config)
Create a new Roo.bootstrap.Button
Create a new Roo.bootstrap.Button
|
||
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
()
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}.
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}. |
Roo.Component | |
disable
()
Disable this button
Disable this button
|
Roo.bootstrap.Button | |
enable
()
Enables this button
Enables this button
|
Roo.bootstrap.Button | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
focus
(Boolean selectText)
:
Roo.Component
Try to focus this component.
Try to focus this component.
|
Roo.Component | |
getChildContainer
()
:
Roo.Element
Fetch the element to add children to
Fetch the element to add children to
|
Roo.bootstrap.Component | |
getEl
()
:
Roo.Element
Returns the underlying {link Roo.Element}.
Returns the underlying {link Roo.Element}.
|
Roo.Component | |
getId
()
:
String
Returns the id of this component.
Returns the id of this component.
|
Roo.Component | |
Roo.util.Observable | ||
hide
()
Hide a component - adds 'hidden' class
Hide a component - adds 'hidden' class
|
Roo.bootstrap.Component | |
initEvents
()
Initialize Events for the element
Initialize Events for the element
|
Roo.bootstrap.Component | |
isVisible
()
Returns true if this component is visible.
Returns true if this component is visible.
|
Roo.Component | |
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 | ||
render
(String/HTMLElement/Element container)
If this is a lazy rendering component, render it to its container element.
If this is a lazy rendering component, render it to its container element.
|
Roo.Component | |
setActive
(Boolean state)
sets the active state on/off,
sets the active state on/off,
|
Roo.bootstrap.Button | |
setDisabled
(Boolean disabled)
Convenience function for setting disabled/enabled by boolean.
Convenience function for setting disabled/enabled by boolean.
|
Roo.Component | |
setVisible
(Boolean visible)
:
Roo.Component
Convenience function to hide or show this component by boolean.
Convenience function to hide or show this component by boolean.
|
Roo.Component | |
show
()
Show a component - removes 'hidden' class
Show a component - removes 'hidden' class
|
Roo.bootstrap.Component | |
toggleActive
()
toggles the current active state
toggles the current active state
|
Roo.bootstrap.Button | |
tooltipEl
()
:
Roo.Element
Fetch the element to display the tooltip on.
Fetch the element to display the tooltip on.
|
Roo.bootstrap.Component | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
beforedestroy (Roo.Component this)
Fires before the component is destroyed.
Fires before the component is destroyed. Return false to stop the destroy.
|
Roo.Component | |
beforehide (Roo.Component this)
Fires before the component is hidden.
Fires before the component is hidden. Return false to stop the hide.
|
Roo.Component | |
beforerender (Roo.Component this)
Fires before the component is rendered.
Fires before the component is rendered. Return false to stop the render.
|
Roo.Component | |
beforeshow (Roo.Component this)
Fires before the component is shown.
Fires before the component is shown. Return false to stop the show.
|
Roo.Component | |
childrenrendered (Roo.bootstrap.Component this)
Fires when the children have been rendered.
Fires when the children have been rendered..
|
Roo.bootstrap.Component | |
click (Roo.bootstrap.Button this, Roo.EventObject e)
When a butotn is pressed
When a butotn is pressed
|
Roo.bootstrap.Button | |
destroy (Roo.Component this)
Fires after the component is destroyed.
Fires after the component is destroyed.
|
Roo.Component | |
disable (Roo.Component this)
Fires after the component is disabled.
Fires after the component is disabled.
|
Roo.Component | |
enable (Roo.Component this)
Fires after the component is enabled.
Fires after the component is enabled.
|
Roo.Component | |
hide (Roo.Component this)
Fires after the component is hidden.
Fires after the component is hidden.
|
Roo.Component | |
render (Roo.Component this)
Fires after the component is rendered.
Fires after the component is rendered.
|
Roo.Component | |
show (Roo.Component this)
Fires after the component is shown.
Fires after the component is shown.
|
Roo.Component | |
toggle (Roo.EventObject e, boolean pressed)
After the button has been toggles
After the button has been toggles
|
Roo.bootstrap.Button |