A model type of the form, i.e. a type of its control value.
A type of HTML form element.
Form sharer component type.
Constructs form.
Shareable body.
Accessing is throws an exception until bound to sharer.
Input control of the field, if present.
Form element control, if present.
Unlike input control this one is not supposed to be submitted, but rather contains a <form>
element issuing a submit
event.
An AfterEvent
keeper of shareable body.
An [AfterEvent__symbol]
method always returns this value.
Sharer component context.
Accessing it throws an exception until bound to sharer.
Static
[An input control aspect representing a form this control belongs to.
This aspect is available in submittable form control and form element control.
Static
byCreates a form instance by the given control factories.
New form instance.
Submittable form control factory.
Form element control factory or options.
Static
forBuilds a user input form for the given form control and HTML element.
New form instance.
Submitted control. Typically a container one.
HTML element to create control for.
Optional
options: Omit<Options, "form">Form element control options.
Static
providerConverts shareable body or its provider to provider that always returns an AfterEvent
keeper of shareable body.
Shareable body provider.
Shareable body type.
Sharer component type.
Either shareable body, or its provider.
Converts shareable body or its provider to provider that always returns an AfterEvent
keeper of shareable body.
Shareable body provider.
Static
providerCreates a form controls provider by the given control factories.
New form controls provider.
Submittable form control factory.
Form element control factory or options.
Generated using TypeDoc
User input form.
A component shares form (e.g. using @SharedForm decorator) to make its accessible by component itself and nested ones. E.g. to add fields to it or submit it.
A form may be nested within another one, as it implements a Field interface.
The form instance is not usable until it is bound to its sharer component. The latter is done automatically when the form is shared by FormShare.