Form / foldkit-mixins-form

FormViewWords

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

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
  readonly resubmit?: string | undefined
  readonly summary?: string | undefined
  readonly issue?: string | undefined
  readonly inRow?: string | undefined
  readonly more?: 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:51

readonly submit?: string | undefined

On the submit button. Default Submit.

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

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:55

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:57

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:59

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:61

readonly checking?: string | undefined

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

FormViewWords.submitting

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

readonly submitting?: string | undefined

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

FormViewWords.resubmit

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

readonly resubmit?: string | undefined

On the submit button after its write failed, when a submit sends that write again (failure.retry). Default Try again.

FormViewWords.summary

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

readonly summary?: string | undefined

Above the list of fields to fix. Default Check these fields:.

FormViewWords.issue

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

readonly issue?: string | undefined

One field to fix, a link to it. Default {label}: {error}.

FormViewWords.inRow

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

readonly inRow?: string | undefined

A field of a row as the fields to fix name it, so two rows' links differ: {row} is the nested key's label, with the row's position when it holds many. Default {row}, {label}.

FormViewWords.more

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

readonly more?: string | undefined

On the button under a picker whose list has more rows than it shows. Default Show more.