Field Element
The Field Element is the HTML that makes up the control(s) to accept data from the user for a single Field. The Field Element can be:
- Specified manually
- Created by a Field Generator based on the metadata of the model property being displayed and the Field Configuration specified when it's:
- Displayed as part of a Field
- Output directly from the Form
Outputting directly from the Form
To use a Field Generator to output the HTML for a standalone Field Element you can use the <field-element />
tag, e.g.:
<field-element for="SomeField" />
<field-element for="SomeField" fluent-config='c => c.ChainFieldConfigurationMethodsHere()' />
<field-element for="SomeField" placeholder="Placeholder text..." />
To see the different configuration options check out field configuration.
Default HTML
The HTML for the Field Element will be determined depending on the metadata of the model property being specified and the options in the Field Configuration. The HTML of the Field Element will by default simply be:
%fieldElement%