Show:

A base class for ButtonGroup.

Constructor

Methods

_afterSelectionChange

() protected

Fires after 'selectionChange' event.

initializer

() protected

Constructor for A.ButtonGroup. Lifecycle.

item

(
  • index
)
Button | Node

Returns the item or node of specified index.

Parameters:

Returns:

Button | Node:

The item as Button or Node instance.

renderUI

() protected

Renders the ButtonGroup component instance. Lifecycle.

select

(
  • items
)

Selects items by adding the active class name.

Parameters:

  • items Array

syncAriaSelected

(
  • buttons
)

Updates the 'aria-selected' attribute on all buttons.

Parameters:

  • buttons Array

toggleSelect

(
  • items
  • forceSelection
)

Toggles selection by adding or removing the active class name.

Parameters:

  • items Array
  • forceSelection Boolean

    Whether selection should be forced.

unselect

(
  • items
)

Selects items by adding the active class name.

Parameters:

  • items Array