ButtonGroup

Overview

Creates a set of buttons that can represent various states and similar to a toggle button can be toggled between modes.

Ancestors

  1. Control
  2. Container
 

Descendants

  1. None
 

See Also

  1. Button

Constructors

new ButtonGroup
Description

Creates a collection that buttons can be added to.

Definition

new ButtonGroup()

Members

selected
Description

Gets or sets the index of the button that is selected, the value must be from 0 to the amount of buttons in the group. This returns null if no item is selected.

Definition

number buttongroup.selected

Methods

appendChild(button)
Description

Append child adds the passed in button as a segment in the group.

Definition

buttongroup.appendChild(button)
Parameters
NameTypeDescription
button Button A button to add as a segment to the group.
removeChild(button)
Description

Remove child removes the passed in button from the group.

Definition

buttongroup.removeChild(button)
Parameters
NameTypeDescription
button Button The button to remove as a segment to the group.