@camera.ui/sdk / storage / JsonSchemaEnum
Interface: JsonSchemaEnum ​
Defined in: storage/index.ts:215
Complete enum schema with callbacks.
Extends ​
JsonBaseSchema<string|string[]>JsonEnumSchema
Properties ​
condition? ​
optionalcondition?:SchemaCondition|SchemaCondition[]
Defined in: storage/index.ts:73
Condition for conditional field visibility. Array = all must be true (AND).
Inherited from ​
defaultValue? ​
optionaldefaultValue?:string|string[]
Defined in: storage/index.ts:71
Default value when not set.
Inherited from ​
description ​
description:
string
Defined in: storage/index.ts:52
Field description/help text.
Inherited from ​
enum ​
enum:
string[]
Defined in: storage/index.ts:151
Available options.
Inherited from ​
enumLabels? ​
optionalenumLabels?:Record<string,string>
Defined in: storage/index.ts:153
Display labels per enum value; values without a label show the raw value.
Inherited from ​
group? ​
optionalgroup?:string
Defined in: storage/index.ts:54
Optional group name for organizing fields.
Inherited from ​
hidden? ​
optionalhidden?:boolean
Defined in: storage/index.ts:63
Hide field from UI.
Inherited from ​
key ​
key:
string
Defined in: storage/index.ts:48
Unique field identifier.
Inherited from ​
minItems? ​
optionalminItems?:number
Defined in: storage/index.ts:157
Minimum number of selected values (multiple only).
Inherited from ​
multiple? ​
optionalmultiple?:boolean
Defined in: storage/index.ts:155
Allow multiple selection.
Inherited from ​
onGet? ​
optionalonGet?: () =>Promise<any>
Defined in: storage/index.ts:98
Callback to get computed value.
Returns ​
Promise<any>
Inherited from ​
onSet? ​
optionalonSet?: (newValue,oldValue) =>Promise<void>
Defined in: storage/index.ts:96
Callback after a write. setValue fires it whether or not the value changed; setConfig fires it only for keys that changed.
Parameters ​
newValue ​
any
oldValue ​
any
Returns ​
Promise<void>
Inherited from ​
placeholder? ​
optionalplaceholder?:string
Defined in: storage/index.ts:69
Placeholder text for empty fields.
Inherited from ​
readonly? ​
optionalreadonly?:boolean
Defined in: storage/index.ts:67
Make field read-only.
Inherited from ​
required? ​
optionalrequired?:boolean
Defined in: storage/index.ts:65
Mark field as required.
Inherited from ​
store? ​
optionalstore?:boolean
Defined in: storage/index.ts:94
Whether to persist this field to storage.
Inherited from ​
title ​
title:
string
Defined in: storage/index.ts:50
Display title.
Inherited from ​
type ​
type:
"string"
Defined in: storage/index.ts:216
Field type.