Returns HTML attributes and name= attribute for the component, used on the HTML tag.
Class: YetaWF.Modules.ComponentsHTML.Components.YetaWFComponent
Namespace: YetaWF.Modules.ComponentsHTML.Components
Assembly: YetaWF.ComponentsHTML
public string FieldSetup( FieldType fieldType, List<YetaWF.Core.Models.YIClientValidation>? validations = null );
fieldType
The type of the field.
validations
Optional list of additional validations.
(not specified)
FieldSetup should be call first, as it adds entries to the HtmlAttributes collection, including additional CSS classes. This is used for the main tag of a template. Automatically adds the components HtmlAttributes.
Adds validation attributes depending on the field's type fieldType.
See Also YetaWF.Modules.ComponentsHTML.Components.YetaWFComponent ClassYetaWF.ComponentsHTML PackageYetaWF.Core
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com