import type { ToggleFieldSpec } from 'pixi-silk/ui/inspector';
An on and off switch.
Properties#
| Property | Type | Description | Defined in |
|---|
key | string | Dot path of a boolean value. | ui/panels/Inspector.ts:67 |
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:69 |
text? | string | Text after the switch. | ui/panels/Inspector.ts:71 |
type | "toggle" | Field kind. | ui/panels/Inspector.ts:65 |