API Docs for:
Show:

CharmContainer Class

Extends Y.Widget
Module: browser
Parent Module: widgets

A container for charm tokens, used to control how many are displayed and provide categorization.

Methods

_afterInit

()

Sets up some attributes that are needed before render, but can only be calculated after initialization completes.

_hideSomeChildren

()

Hides all but the children before the designated cutoff. e.g. if cutoff is three, hides all but the first three items.

_showAll

()

Show all items.

_toggleExpand

()

Toggles between the _showAll condition and the _hideSomeChildern condition.

bindUI

()

Sets up events and binds them to listeners.

initializer

()

Initializer

renderUI

()

Sets up the DOM nodes and renders them to the DOM.

validator

(
  • val
)

Verify the cutoff is non-negative.

Parameters:

  • val Number

    The cutoff value being validated.

Attributes

cutoff

Integer

Default: 3

defaultChildType

Function

Default: Y.juju.widgets.browser.CharmToken

extra

Integer

Default: undefined

name

String

Default: ''