Canvas Toolkit
← Class index

CButtonGroup

Widgets · extends CObject

Implements the button group widget.

import { CButtonGroup } from "canvas-toolkit-lib";

Declared members

readonly buttonClicked: CSignal<[CAbstractButton]>;

Public button clicked member.

readonly buttonToggled: CSignal<[CAbstractButton, boolean]>;

Public button toggled member.

constructor(parent?: CObject | null);

Creates a new instance.

addButton(button: CAbstractButton): void;

Adds button.

removeButton(button: CAbstractButton): void;

Removes button.

buttons(): CAbstractButton[];

Provides buttons behavior.

isExclusive(): boolean;

Returns whether the exclusive condition is active.

setExclusive(exclusive: boolean): void;

Sets the exclusive.

checkedButton(): CAbstractButton | null;

Provides checked button behavior.