Class: CUI.Buttonbar

Defined in: elements/Button/Buttonbar.coffee
Inherits: CUI.DOMElement

Overview

Buttonbar groups {Button}s

Variables Summary

Variable inherited from CUI.DOMElement

defaults uniqueId

Instance Method Summary

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 = {})

Parameters:

  • options ( Object ) for {Buttonbar} creation

Options Hash: (options):

  • buttons ( Array ) is an array of {Button} Objects. Use thie 'group' option in {Button} to let {Buttonbar} sort the buttons into groups.
  • tooltip ( Object ) is a list of options for creating a {Tooltip} for the {Buttonbar}.

Instance Method Details

# (void) initOpts()

# (void) __proxy(func, args...)

# (void) disable()

# (void) enable()

# (void) __setVisibilityClasses(el) Bound

sets classes on all children of "el" returns the number of visible children

# (void) __checkVisibility()

hide the group if no children

# (void) removeButtons()

# (void) prependButton(btn, check_visibility = true)

# (void) addButton(btn, check_visibility = true, prepend = false)

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: