ChoiceFieldSpec
import type { ChoiceFieldSpec } from 'pixi-silk/ui/inspector';
Segmented choices.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
key | string | Dot path of the value. It is compared with each option’s value. | ui/panels/Inspector.ts:79 |
label? | string | Row label. Also names the undo step. Default none: the row has no label and the step uses the key. | ui/panels/Inspector.ts:81 |
options | readonly 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 |