Skip to main content

Interface: GeovisWorkspaceSidebarChipsFilter

Defined in: context/GeovisWorkspaceContext.ts:281

A chips filter: a wrapping row of toggle chips with a "clear" action. Visual-only in the preview — the selection is held locally.

Properties​

defaultSelected?​

optional defaultSelected?: string[]

Defined in: context/GeovisWorkspaceContext.ts:303

Ids of the chips active on first render.


kind​

kind: "chips"

Defined in: context/GeovisWorkspaceContext.ts:282


layout?​

optional layout?: GeovisWorkspaceSidebarChipsLayout

Defined in: context/GeovisWorkspaceContext.ts:305

How the chips are arranged. Defaults to { kind: 'wrap' }.


optional menuId?: string

Defined in: context/GeovisWorkspaceContext.ts:297

Keys the shared selection this filter drives, as the active ids joined by commas ('ativo,reduzido') — '' while nothing is selected. Omit to keep the selection local (visual-only).

With a menuId the chips show what the shared selection holds, as a variations menu does: an app that rewrites the value — restoring a permalink, say — sees the chips follow, rather than having them publish their own copy back over it.

A delimited string rather than an array because GeovisWorkspaceSelection holds one string per key, and because that is already the shape a permalink needs.


multiple?​

optional multiple?: boolean

Defined in: context/GeovisWorkspaceContext.ts:301

Whether more than one chip can be active at once. Defaults to true.


options​

options: GeovisWorkspaceSidebarChipOption[]

Defined in: context/GeovisWorkspaceContext.ts:299

The selectable chips.