Skip to content
pixi-silk
GitHub repository
Interface

ChoiceFieldSpec

import type { ChoiceFieldSpec } from 'pixi-silk/ui/inspector';

Segmented choices.

Properties#

PropertyTypeDescriptionDefined in
keystringDot path of the value. It is compared with each option’s value.ui/panels/Inspector.ts:79
label?stringRow label. Also names the undo step. Default none: the row has no label and the step uses the key.ui/panels/Inspector.ts:81
optionsreadonly ChoiceOption[]The choices, left to right. They share the row width equally.ui/panels/Inspector.ts:83
type"choice"Field kind.ui/panels/Inspector.ts:77