Skip to content
pixi-silk
GitHub repository
Interface

ToggleFieldSpec

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

An on and off switch.

Properties#

PropertyTypeDescriptionDefined in
keystringDot path of a boolean value.ui/panels/Inspector.ts:67
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:69
text?stringText after the switch.ui/panels/Inspector.ts:71
type"toggle"Field kind.ui/panels/Inspector.ts:65