Hide

YetaWF.ComponentsHTML Package Documentation

Display
Print

YetaWF.Modules.ComponentsHTML.Components.YetaWFComponent.FieldSetup Method

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

Syntax

public string FieldSetup(
    FieldType fieldType,
    List<YetaWF.Core.Models.YIClientValidation>? validations = null );

Parameters

fieldType

The type of the field.

validations

Optional list of additional validations.

Return Value

(not specified)

Remarks

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