Form Model interface

Definition of the model for keeping and performing data of your forms.

Implementations

Constructor

  const abstractFormModel = new UIKernel.AbstractModels.Form();

Methods

(abstract) async getData

 async getData(string[] fields)

Return all requested fields.


(abstract) submit

 async submit(Object changes)

Process form data.


(abstract) getValidationDependency

  string[] getValidationDependency(string[] fields)

Return fields that need to be sent additionally to validate a field. This method is required for creating group validators.


(abstract) async isValidRecord

  async isValidRecord(Object record)

Validate records


Adapters

Form model can be easily obtained from Grid model. More..