Skip to content

charton API


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

Interface: PickerDialog ​

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

An open picker dialog made by createPickerDialog: its picked items, plus search, refresh and close.

Properties ​

el ​

readonly el: HTMLElement

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

Backdrop that holds the dialog.


isOpen ​

readonly isOpen: boolean

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


selected ​

readonly selected: string[]

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

Ids of the picked items (multiple).

Methods ​

close() ​

close(): void

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

Returns ​

void


refresh() ​

refresh(): void

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

Redraw the rows, e.g. after a row action changed what pressed reads.

Returns ​

void


search(query): void

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

Put query in the search box and search now.

Parameters ​

query ​

string

Returns ​

void