Potential, extended mapper which will be used for building a form.
Validates a whole form asynchronously, in a wider context than a single-field validation.
Mandatory service, which should be included in a form component built with DORF.
Callback when resetting a form.
Callback when saving a form.
Validates a whole form, in a wider context. E.g. an introduced phone number may be OK as well as a country, but both fields together don't match (e.g. wrong first numbers, not applicable for a particular country).
Generated using TypeDoc
Optional interface for reminding about form properties. Enforces defining a
config
property which is needed in a class marked as @DorfForm(). Contains other useful properties which may be overriden.// order @DorfForm() @Component({selector: "test-domain-object-form"}) class TestDomainObjectForm implements IDorfForm { @DorfObjectInput() private domainObject: Person; @Output() createUpdate = new EventEmitter<IModel>(); constructor(public config: DorfConfigService) {} onSubmit() { let result = this["form"].value as IPerson; this.createUpdate.emit(result); } }