Variable: field
ts
const field: object;Defined in: config/field.ts:85
Builders for the fields of a configuration schema.
Type Declaration
| Name | Type | Defined in |
|---|---|---|
boolean | typeof booleanField | config/field.ts:88 |
color | typeof colorField | config/field.ts:87 |
enum | typeof enumField | config/field.ts:89 |
number | typeof numberField | config/field.ts:86 |
Example
ts
const schema = { size: field.number({ label: 'Size', description: 'The width of the stroke.', default: 15, min: 1, max: 50, step: 1 }) };