Form Controller¶
Lit controller that encapsulate form management initialization
classDiagram
FormController <|.. IFormController
FormController <|.. ReactiveController
class IFormController {
+ form$: ReplaySubject<HTMLFormElement>
+ formService: IFormService
+ controlPropertiesManager: IControlPropertiesManager
+ controlValidatorsProcessor: IControlValidatorsProcessor
+ htmlControlRegistrationService: IControlRegistrationService
+ bindControl() ReturnType~typeof bindControlDirective~
+ onSubmitDirective(onSubmit: TFormSubmitAction) ReturnType~typeof onSubmitDirective~
}
* reactive controller is an interface provided by lit, that every controller implements.
Methods¶
Properties¶
Name | Type | Description |
---|---|---|
form$ | ReplaySubject |
rxjs subject object that emits |
formService | IFormService | form service instance |
controlPropertiesManager | IControlPropertiesManager | html control attributes and values synchronization with store |
controlValidatorsProcessor | IControlValidatorsProcessor | setup controls validation |
htmlControlRegistrationService | IControlRegistrationService | register html form controls in a store |