Kvaser CanKing GUI Extensions SDK v7.6.1


Kvaser CanKing GUI Extensions SDK / controls / ToggleButtonGroupProps

Interface: ToggleButtonGroupProps

Properties of a ToggleButtonGroup component displayed by the toolbar.

Properties

ariaLabel?

optional ariaLabel?: string

Aria label.


buttons

buttons: ToggleButtonProps[]

The buttons in this group.


exclusive?

optional exclusive?: boolean

Set to true if only one of the buttons can be selected at the time.


onChange

onChange: (value) => void

Callback that will be called when any button in this group has been selected/deselected.

Parameters

value

string[]

The new value.

Returns

void


orientation?

optional orientation?: "horizontal" | "vertical"

Orientation of this group.


size?

optional size?: "small" | "medium" | "large"

Size of the buttons in this group.


value

value: string[]

Value of the selected buttons in this group.