Skip to content

charton API


charton API / @chart-on/ui / index / PickerRowAction

Interface: PickerRowAction<T> ​

Defined in: ui/src/picker-dialog.ts:20

A button at the end of each row, e.g. a star or a settings button.

Type Parameters ​

T ​

T extends PickerItem

Properties ​

icon ​

icon: IconSource

Defined in: ui/src/picker-dialog.ts:24


id ​

id: string

Defined in: ui/src/picker-dialog.ts:21


label ​

label: string

Defined in: ui/src/picker-dialog.ts:23

Accessible name and tooltip.

Methods ​

appliesTo()? ​

optional appliesTo(item): boolean

Defined in: ui/src/picker-dialog.ts:28

Rows to show the button on; all of them when omitted.

Parameters ​

item ​

T

Returns ​

boolean


pressed()? ​

optional pressed(item): boolean

Defined in: ui/src/picker-dialog.ts:26

For toggles: whether it is on for item (sets aria-pressed).

Parameters ​

item ​

T

Returns ​

boolean