Skip to content

@jsvision/datagrid / ValueListConfig

Interface: ValueListConfig

Defined in: datagrid/src/value-list-popup.ts:75

Construction config for ValueList.

Properties

availableWidth?

optional availableWidth?: number

Defined in: datagrid/src/value-list-popup.ts:87

Available content width used to choose a horizontal or stacked action arrangement.


buttonWidth?

optional buttonWidth?: number

Defined in: datagrid/src/value-list-popup.ts:83

Forced Select All / Apply width, so a popup can size all its buttons alike; omit to self-size.


current?

optional current?: ReadonlySet<string>

Defined in: datagrid/src/value-list-popup.ts:79

The currently-selected labels, checked on reopen; when omitted, every label starts checked.


distinct

distinct: () => Promise<DistinctResult>

Defined in: datagrid/src/value-list-popup.ts:77

Resolves to the column's distinct formatted labels (and a truncated flag when capped).

Returns

Promise<DistinctResult>


i18n?

optional i18n?: I18n

Defined in: datagrid/src/value-list-popup.ts:85

Translation service for package-owned labels; defaults to isolated English text.


onApply

onApply: (selected) => void

Defined in: datagrid/src/value-list-popup.ts:81

Reports the checked label set (the container turns it into a { kind: 'set' } filter).

Parameters

selected

ReadonlySet<string>

Returns

void