Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / builder

Function: builder()

builder(key): Field

Defined in: admin/src/form/Field.ts:862

Builder → array of typed blocks, each with its own schema. Declare the block types with builderBlock. Stored as [{ type, data }]:

builder("content").blocks([ builderBlock("paragraph").schema([textarea("text")]), builderBlock("image").icon("photo").schema([fileUpload("src").image()]), ])

Parameters

key

string

Returns

Field