![]() This allows you to adjust the resulting markup (accessibility or data attributes, CSS classes, etc.) based on contextual information. ![]() In addition to setting the global rendering configuration, you can modify forms and form fields as they are being rendered. Moreover, further nesting of additional configurations via ChildConfiguration becomes disabled.įor illustration, the following pseudocode shows the configurable structure of individual form fields: Note: If the CustomHtml property is set, the system disregards the element and HTML attributes specified in ElementName and HtmlAttribute and renders the value of this property as raw HTML instead. See CONTENT_PLACEHOLDER usage for an example. The HTML string needs to contain ElementRenderingConfiguration.CONTENT_PLACEHOLDER to mark where you wish to render the remaining sub-elements within the given wrapping element. Sets custom HTML markup instead of the corresponding ElementRenderingConfiguration. Use this property to nest multiple wrapping elements for a given form field section. May hold additional ElementRenderingConfigurations. The name of the HTML element wrapping the given form field component. ElementRenderingConfiguration exposes the following properties: Some properties of FormWidgetRenderingConfiguration and FormFieldRenderingConfiguration are of the ElementRenderingConfiguration type, which is used to specify the wrapping HTML element. Indicates whether validation messages are rendered individually for each form field. If null, no wrapping HTML element is rendered. Specifies the HTML element (and its attributes) wrapping the explanation text – a short message usually rendered under the input fields – of the component. Specifies the HTML element (and its attributes) wrapping the field's input element. Specifies HTML attributes applied to the field's input element. If null, no wrapping HTML element is rendered. Specifies the HTML element (and its attributes) wrapping the field's input, validation message, and explanation text. Indicates whether a colon ':' character is rendered after the text of the label element. Specifies HTML attributes applied to the label element. Specifies the HTML element (and its attributes) wrapping the label element. If null, no wrapping element is rendered for the given form field. ![]() Specifies the HTML element (and its attributes) wrapping the label and corresponding input element. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |