Skip to content

@serenity-is/corelib / EditorProps

Type Alias: EditorProps<T>

EditorProps<T> = WidgetProps<T> & object

Defined in: src/ui/editors/editorwidget.ts:8

Props for editor widgets, extending widget props with editor-specific options.

Type Declaration

initialValue?

optional initialValue: any

Initial value for the editor.

maxLength?

optional maxLength: number

Maximum input length.

name?

optional name: string

Field name.

placeholder?

optional placeholder: string

Placeholder text.

readOnly?

optional readOnly: boolean

Whether the editor is read-only.

required?

optional required: boolean

Whether the field is required.

Type Parameters

T

T

Widget props type.