For developers: Fields and elements of MVC forms
When working with MVC forms, you can use fields and elements inside the form to extend the basic form functionality. You use elements to display helper information within the form or to make use of features such as validation, captcha display, and so on. Fields, on the other hand, are a special type of elements. You use fields to collect user input and to persist the input in the response.
You can customize fields and elements to suit the requirements of your forms. To do this, you use Feather's abstract classes and interfaces:
|
Model abstract class |
Model interface |
Controller abstract class |
Controller interface |
Fields |
FormFieldModel |
IFormFieldModel |
FormFieldControllerBase<T>
where T: IFormFieldModel
|
IFormFieldController<T>
where T: IFormFieldModel and IFormFieldControl |
Elements |
FormElementModel |
IFormElementModel |
FormElementControllerBase<T>
where T: IFormElementModel |
IFormElementController<T>
where T: IFormElementModel |