Skip to content

@camera.ui/sdk / storage / JsonSchemaSubmit

Interface: JsonSchemaSubmit ​

Defined in: storage/index.ts:255

Submit button schema: submits form data and can return an updated schema.

Extends ​

Properties ​

color? ​

optional color?: "success" | "info" | "warn" | "danger"

Defined in: storage/index.ts:259

Button color variant.


description ​

description: string

Defined in: storage/index.ts:52

Field description/help text.

Inherited from ​

JsonFactorySchema.description


group? ​

optional group?: string

Defined in: storage/index.ts:54

Optional group name for organizing fields.

Inherited from ​

JsonFactorySchema.group


key ​

key: string

Defined in: storage/index.ts:48

Unique field identifier.

Inherited from ​

JsonFactorySchema.key


onClick ​

onClick: (value) => Promise<void | FormSubmitResponse>

Defined in: storage/index.ts:261

Submit handler; receives form values, can return toast/schema updates.

Parameters ​

value ​

any

Returns ​

Promise<void | FormSubmitResponse>


title ​

title: string

Defined in: storage/index.ts:50

Display title.

Inherited from ​

JsonFactorySchema.title


type ​

type: "submit"

Defined in: storage/index.ts:257

Schema type discriminator.

Overrides ​

JsonFactorySchema.type