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
FieldSlots | One field: the control for a key, and what stands around it. |
FormSlots | The form around its fields. |
Interfaces
BundleInput | A control backed by a Bundle, as its field is drawn: its Model, and how its Messages leave. |
FieldAttrs | What 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… |
FieldInput | What a field's Style and Behavior attachments may read. |
FieldOverrideInput | What 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… |
FieldsField | One 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… |
FieldsOptions | Per-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… |
FormInput | What the form's own Style and Behavior attachments may read. |
FormViewInputs | What 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. |
FormViewWords | 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… |
Option | One thing a select or a relation picker offers. |
RenderContext | What a renderer draws one control from. |
Types
FieldOverride | Draws 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… |
Renderer | Draws the control of one kind. The label, description and error around it are the field's. |
Renderers | Renderers by the kind of control they draw. |