CRUD / foldkit-mixins-crud

EditorInput

interface · packages/mixins-crud/src/editor.ts:56

interface EditorInput<Message> {
  readonly id: string
  readonly status: EditorStatus
  readonly title: string
  readonly form: Html
  readonly error?: string | undefined
  readonly onClose?: Message | undefined
  readonly onRetry?: Message | undefined
  readonly words?: EditorWords | undefined
}

Members

EditorInput.id

property · packages/mixins-crud/src/editor.ts:58

readonly id: string

Unique on the page: the root's id, and the prefix of its title's.

EditorInput.status

property · packages/mixins-crud/src/editor.ts:59

readonly status: EditorStatus

EditorInput.title

property · packages/mixins-crud/src/editor.ts:60

readonly title: string

EditorInput.form

property · packages/mixins-crud/src/editor.ts:62

readonly form: Html

The form, drawn by its own view (EditForm.view(model, h, inputs)). Shown while there is something to edit.

EditorInput.error

property · packages/mixins-crud/src/editor.ts:64

readonly error?: string | undefined

Why the last save failed: the editor's saveError(model)?.message.

EditorInput.onClose

property · packages/mixins-crud/src/editor.ts:66

readonly onClose?: Message | undefined

Closes the editor. Given, a close button sends it.

EditorInput.onRetry

property · packages/mixins-crud/src/editor.ts:68

readonly onRetry?: Message | undefined

Asks again after a failed read: a Message whose update calls refresh.

EditorInput.words

property · packages/mixins-crud/src/editor.ts:69

readonly words?: EditorWords | undefined