Skip to content

@lubusin/wp-frappe-data-store / ResourceFieldDefinition

Type Alias: ResourceFieldDefinition ​

ResourceFieldDefinition = object

Defined in: src/types.ts:15

Normalized metadata definition for a single field within a Frappe DocType.

Properties ​

description? ​

optional description?: string

Defined in: src/types.ts:18


id ​

id: string

Defined in: src/types.ts:16


label ​

label: string

Defined in: src/types.ts:17


options? ​

optional options?: string[]

Defined in: src/types.ts:28


placeholder? ​

optional placeholder?: string

Defined in: src/types.ts:19


readOnly? ​

optional readOnly?: boolean

Defined in: src/types.ts:30


required? ​

optional required?: boolean

Defined in: src/types.ts:29


type? ​

optional type?: "text" | "textarea" | "select" | "checkbox" | "date" | "datetime" | "number"

Defined in: src/types.ts:20

Released under the MIT License.