@camera.ui/sdk / storage / JsonSchemaString
Interface: JsonSchemaString
Defined in: storage/index.ts:175
Complete string schema with callbacks.
Extends
JsonBaseSchema<string>.JsonStringSchema
Properties
condition?
optionalcondition?:SchemaCondition|SchemaCondition[]
Defined in: storage/index.ts:77
Condition for conditional field visibility. Array = all must be true (AND).
Inherited from
defaultValue?
optionaldefaultValue?:string
Defined in: storage/index.ts:75
Default value when not set
Inherited from
description
description:
string
Defined in: storage/index.ts:56
Field description/help text
Inherited from
format?
optionalformat?:"date-time"|"date"|"time"|"email"|"uuid"|"ipv4"|"ipv6"|"password"|"qrCode"|"image"
Defined in: storage/index.ts:123
String format for validation/display. See type docs for behavior per format.
Inherited from
group?
optionalgroup?:string
Defined in: storage/index.ts:58
Optional group name for organizing fields
Inherited from
hidden?
optionalhidden?:boolean
Defined in: storage/index.ts:67
Hide field from UI
Inherited from
key
key:
string
Defined in: storage/index.ts:52
Unique field identifier
Inherited from
maxLength?
optionalmaxLength?:number
Defined in: storage/index.ts:127
Maximum string length (inclusive).
Inherited from
minLength?
optionalminLength?:number
Defined in: storage/index.ts:125
Minimum string length (inclusive).
Inherited from
onGet?
optionalonGet?: () =>Promise<any>
Defined in: storage/index.ts:102
Callback to get computed value
Returns
Promise<any>
Inherited from
onSet?
optionalonSet?: (newValue,oldValue) =>Promise<void>
Defined in: storage/index.ts:100
Callback when value changes
Parameters
newValue
any
oldValue
any
Returns
Promise<void>
Inherited from
placeholder?
optionalplaceholder?:string
Defined in: storage/index.ts:73
Placeholder text for empty fields
Inherited from
readonly?
optionalreadonly?:boolean
Defined in: storage/index.ts:71
Make field read-only
Inherited from
required?
optionalrequired?:boolean
Defined in: storage/index.ts:69
Mark field as required
Inherited from
store?
optionalstore?:boolean
Defined in: storage/index.ts:98
Whether to persist this field to storage
Inherited from
title
title:
string
Defined in: storage/index.ts:54
Display title
Inherited from
type
type:
"string"
Defined in: storage/index.ts:176
Field type