Hide

YetaWF.ComponentsHTML Package Documentation

Display
Print

YetaWF.Modules.ComponentsHTML.Components.DropDownListEditComponentBase<TYPE>.RenderDropDownListAsync Method

Renders a DropDownList component as HTML.

Class: YetaWF.Modules.ComponentsHTML.Components.DropDownListEditComponentBase<TYPE>
Namespace: YetaWF.Modules.ComponentsHTML.Components
Assembly: YetaWF.ComponentsHTML

Syntax

public static Task<string> RenderDropDownListAsync(
    YetaWFComponent component,
    TYPE model,
    List<YetaWF.Core.Components.SelectionItem<TYPE>> list,
    string? cssClass );

Parameters

component

The component to render.

model

The model rendered by the component.

list

A collection of items to render.

cssClass

A CSS class to add to the <select> tag. May be null.

See Also YetaWF.Modules.ComponentsHTML.Components.DropDownListEditComponentBase<TYPE> ClassYetaWF.ComponentsHTML PackageYetaWF.Core