Interface: GeovisWorkspaceSidebarChoiceOption
Defined in: context/GeovisWorkspaceContext.ts:668
One selectable option in a GeovisWorkspaceSidebarChoiceSetting.
Properties
count?
optionalcount?:string|number
Defined in: context/GeovisWorkspaceContext.ts:709
Short figure on the row's right, in the numeric face — how many areas a
geographic level divides the map into, say. Drawn only in the list
layout, in place of the check: the row's tint already says it is chosen.
disabledHint?
optionaldisabledHint?:string
Defined in: context/GeovisWorkspaceContext.ts:692
Line shown under the options while this option is unavailable.
enabledWhen?
optionalenabledWhen?:GeovisWorkspaceSidebarEnabledWhen
Defined in: context/GeovisWorkspaceContext.ts:690
Keeps the option available only while another menu's value is one of the
gate's values — the same gate a section's enabledWhen takes.
While the gate is closed the option is inert, and if it was the chosen one the control publishes the first available option instead. The reader's choice is remembered, not overwritten: once the gate reopens the control publishes it again. That way the app reads one value and never repeats the gate's rule to decide what to draw.
glyph?
optionalglyph?:"flat"|"extruded"
Defined in: context/GeovisWorkspaceContext.ts:679
Built-in drawing on top of the option: a strip of flat cells, or the same cells extruded. Drawn in GeovisWorkspaceSidebarChoiceSetting.glyphColors.
icon?
optionalicon?:string
Defined in: context/GeovisWorkspaceContext.ts:697
Iconify token before the label. Drawn only in the list layout, where
each row has room for it; cards ignore it.
label
label:
string
Defined in: context/GeovisWorkspaceContext.ts:672
Main text of the option, e.g. '3D'.
sublabel?
optionalsublabel?:string
Defined in: context/GeovisWorkspaceContext.ts:674
Secondary line under the label, e.g. 'Extrudado'.
unit?
optionalunit?:string
Defined in: context/GeovisWorkspaceContext.ts:703
Short unit of what the option measures, e.g. 'habitantes'. While the
option is the chosen one it reads on the right of a sub-block's heading,
so the reader knows what the value is counted in without opening the row.
value
value:
string
Defined in: context/GeovisWorkspaceContext.ts:670
Value reported through selection[menuId] when this option is chosen.