Form / foldkit-mixins-form

FormViewWords

interface · packages/mixins-form/src/index.ts:46

interface FormViewWords {
  readonly submit?: string | undefined
  readonly search?: string | undefined
  readonly none?: string | undefined
  readonly add?: string | undefined
  readonly remove?: string | undefined
  readonly checking?: string | undefined
  readonly submitting?: string | undefined
}

The words the drawn form says itself. Its keys are its own, so one object can hold these, foldkit-mixins-crud's ViewWords, and a form's FormMessages: an application's words, written and translated in one place. They are text with blanks ({label}), never functions: Foldkit admits no function nested in a placed view's inputs.

Members

FormViewWords.submit

property · packages/mixins-form/src/index.ts:48

readonly submit?: string | undefined

On the submit button. Default Submit.

property · packages/mixins-form/src/index.ts:50

readonly search?: string | undefined

Before the label on a picker's search box (Search Author). Default Search.

FormViewWords.none

property · packages/mixins-form/src/index.ts:52

readonly none?: string | undefined

The choice of nothing, in a picker that may be left empty. Default: blank.

FormViewWords.add

property · packages/mixins-form/src/index.ts:54

readonly add?: string | undefined

On the button that adds a row to a nested key. Default Add {label}.

FormViewWords.remove

property · packages/mixins-form/src/index.ts:56

readonly remove?: string | undefined

On the button that removes a row; {position} counts from 1. Default Remove {label} {position}.

FormViewWords.checking

property · packages/mixins-form/src/index.ts:58

readonly checking?: string | undefined

Under a control while its check runs. Default Checking….

FormViewWords.submitting

property · packages/mixins-form/src/index.ts:60

readonly submitting?: string | undefined

On the submit button while the form is submitting. Default Submitting….