Skip to content

@camera.ui/sdk / storage / JsonSchemaArray

Interface: JsonSchemaArray

Defined in: storage/index.ts:231

Complete array schema with callbacks.

Extends

Properties

condition?

optional condition?: SchemaCondition | SchemaCondition[]

Defined in: storage/index.ts:77

Condition for conditional field visibility. Array = all must be true (AND).

Inherited from

JsonBaseSchema.condition


defaultValue?

optional defaultValue?: string[] | number[] | boolean[]

Defined in: storage/index.ts:75

Default value when not set

Inherited from

JsonBaseSchema.defaultValue


description

description: string

Defined in: storage/index.ts:56

Field description/help text

Inherited from

JsonBaseSchema.description


group?

optional group?: string

Defined in: storage/index.ts:58

Optional group name for organizing fields

Inherited from

JsonBaseSchema.group


hidden?

optional hidden?: boolean

Defined in: storage/index.ts:67

Hide field from UI

Inherited from

JsonBaseSchema.hidden


items

items: Omit<JsonSchemaWithoutCallbacks, "key">

Defined in: storage/index.ts:169

Schema for array items

Inherited from

JsonArraySchema.items


key

key: string

Defined in: storage/index.ts:52

Unique field identifier

Inherited from

JsonBaseSchema.key


onGet?

optional onGet?: () => Promise<any>

Defined in: storage/index.ts:102

Callback to get computed value

Returns

Promise<any>

Inherited from

JsonBaseSchema.onGet


onSet?

optional onSet?: (newValue, oldValue) => Promise<void>

Defined in: storage/index.ts:100

Callback when value changes

Parameters

newValue

any

oldValue

any

Returns

Promise<void>

Inherited from

JsonBaseSchema.onSet


opened?

optional opened?: boolean

Defined in: storage/index.ts:167

Whether array items are expanded by default

Inherited from

JsonArraySchema.opened


placeholder?

optional placeholder?: string

Defined in: storage/index.ts:73

Placeholder text for empty fields

Inherited from

JsonBaseSchema.placeholder


readonly?

optional readonly?: boolean

Defined in: storage/index.ts:71

Make field read-only

Inherited from

JsonBaseSchema.readonly


required?

optional required?: boolean

Defined in: storage/index.ts:69

Mark field as required

Inherited from

JsonBaseSchema.required


store?

optional store?: boolean

Defined in: storage/index.ts:98

Whether to persist this field to storage

Inherited from

JsonBaseSchema.store


title

title: string

Defined in: storage/index.ts:54

Display title

Inherited from

JsonBaseSchema.title


type

type: "array"

Defined in: storage/index.ts:232

Field type

Overrides

JsonBaseSchema.type