Form / API

foldkit-mixins-form

foldkit-mixins-form — a foldkit-form form drawn through slots.

foldkit-form describes each control and draws nothing. This package draws them as plain, accessible HTML and publishes every element as a Slot, so an application styles and extends a generated form the way it does any other SlotView, and the form stays free of a view dependency.

Namespaces

Values

FieldSlotsOne field: the control for a key, and what stands around it.
FormSlotsThe form around its fields.

Interfaces

BundleInputA control backed by a Bundle, as its field is drawn: its Model, and how its Messages leave.
FieldAttrsWhat one key's element takes beyond the base field view: an HTML input type, a placeholder, a textarea's rows. A renderer reads what fits its element and…
FieldInputWhat a field's Style and Behavior attachments may read.
FieldOverrideInputWhat a per-key override receives: everything to draw the control, and the Messages that leave it, in the form's own universe. The h an override draws with…
FieldsFieldOne flat key's control, for a layout the caller owns: through the base field view with a form-universe h, or through the override it is given, with any h. A…
FieldsOptionsPer-key overrides for FormView.fields. overrides draw through the whole-form view; styles style one key's base field view there. Unknown keys in either are…
FormInputWhat the form's own Style and Behavior attachments may read.
FormViewInputsWhat the view needs that the form does not own: the choices of each relation picker (a query the application makes), and the submit button's words.
FormViewWordsThe 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…
OptionOne thing a select or a relation picker offers.
RenderContextWhat a renderer draws one control from.

Types

FieldOverrideDraws one key's control, for a layout the base field view does not own. Changed is the form's Message; Message the universe of the h that draws, which is…
RendererDraws the control of one kind. The label, description and error around it are the field's.
RenderersRenderers by the kind of control they draw.