Class: CUI.Button
Defined in: | elements/Button/Button.coffee |
Inherits: | CUI.DOMElement |
Direct Known Subclasses
CUI.ButtonHref CUI.FileUploadButton
Variables Summary
- defaults =
-
{ confirm_ok: "Ok", confirm_icon: "question", confirm_cancel: "Cancel", confirm_title: "Confirmation", disabled_css_class: "cui-disabled", active_css_class: "cui-active" }
- clickTypes =
-
{ click: ['click'], mouseup: ['mouseup'], dblclick: ['dblclick'] }
- clickTypesPrevent =
-
{ click: ['dblclick', 'mousedown'], mouseup: ['mouseup', 'mousedown'], dblclick: ['click', 'mousedown'] }
Variable inherited from CUI.DOMElement
Instance Method Summary
- # (void) setSize(size)
- # (void) onClickAction(ev)
- # (void) initOpts()
- # (void) __getIcon(icon) return icon for string
- # (void) readOpts()
- # (void) getCenter()
- # (void) __getTemplateName()
- # (void) getTemplateName()
- # (void) getValue()
- # (void) getElementForLayer()
- # (void) getRadioButtons()
- # (void) getGroupButtons()
- # (void) __getButtons(key, value) returns other buttons
- # (void) hasMenu()
- # (void) hasLeft()
- # (void) getMenu()
- # (void) menuSetActiveIdx(idx)
- # (void) getMenuRootButton()
- # (void) toggle(flags = {}, event) TODO rename to toggleActiveState
- # (void) setActive(active, flags = {}, event)
- # (void) __callOnGroup(call, flags, event)
- # (void) activate(flags = {}, event)
- # (void) deactivate(flags = {}, event)
- # (void) setIconRight(icon = null)
- # (void) setIcon(icon = null, _key = "left")
- # (void) startSpinner()
- # (void) stopSpinner()
- # (void) getIcon()
- # (void) getIconRight()
- # (void) __setState()
- # (void) __setIconState()
- # (void) __setTextState()
- # (void) isActive()
- # (void) isDisabled()
- # (void) isEnabled()
- # (void) setEnabled(enabled)
- # (void) disable()
- # (void) enable()
- # (void) setText(__txt)
- # (void) setTextMaxChars(max_chars)
- # (void) getText()
- # (void) getGroup()
- # (void) setGroup(__group)
- # (void) __initTooltip()
- # (void) getTooltip()
- # (void) isShown()
- # (void) isHidden()
- # (void) destroy()
- # (void) show()
- # (void) hide()
Inherited Method Summary
Methods inherited from
CUI.DOMElement
#initOpts #registerTemplate #getDOMElementClasses #registerDOMElement #getElementForLayer #unregisterDOMElement #__assertDOMElement #__assertTemplateElement #addClass #setAria #removeClass #hide #show #hasClass #isDestroyed #empty #replace #append #prepend #text #get #getFlexHandle #destroy #getElementClass #getUniqueId #getOpts #getOpt #hasOpt #getSetOpt #hasSetOpt #copy #mergeOpt #removeOpt #addOpt #addOpts #mergeOpts #__getCheckMap #readOpts #readOptsFromAttr #proxy .getOptKeys
Constructor Details
#
(void)
constructor(opts = {})
Instance Method Details
#
(void)
setSize(size)
#
(void)
onClickAction(ev)
#
(void)
initOpts()
#
(void)
__getIcon(icon)
return icon for string
#
(void)
readOpts()
#
(void)
getCenter()
#
(void)
__getTemplateName()
#
(void)
getTemplateName()
#
(void)
getValue()
#
(void)
getElementForLayer()
#
(void)
getRadioButtons()
#
(void)
getGroupButtons()
#
(void)
__getButtons(key, value)
returns other buttons
#
(void)
hasMenu()
#
(void)
hasLeft()
#
(void)
getMenu()
#
(void)
getMenuRootButton()
#
(void)
toggle(flags = {}, event)
TODO rename to toggleActiveState
#
(void)
setActive(active, flags = {}, event)
#
(void)
__callOnGroup(call, flags, event)
#
(void)
activate(flags = {}, event)
#
(void)
deactivate(flags = {}, event)
#
(void)
setIconRight(icon = null)
#
(void)
setIcon(icon = null, _key = "left")
#
(void)
startSpinner()
#
(void)
stopSpinner()
#
(void)
getIcon()
#
(void)
getIconRight()
#
(void)
__setState()
#
(void)
__setIconState()
#
(void)
__setTextState()
#
(void)
isActive()
#
(void)
isDisabled()
#
(void)
isEnabled()
#
(void)
setEnabled(enabled)
#
(void)
disable()
#
(void)
enable()
#
(void)
setText(__txt)
#
(void)
setTextMaxChars(max_chars)
#
(void)
getText()
#
(void)
getGroup()
#
(void)
setGroup(__group)
#
(void)
__initTooltip()
#
(void)
getTooltip()
#
(void)
isShown()
#
(void)
isHidden()
#
(void)
destroy()
#
(void)
show()
#
(void)
hide()