Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.YetaWFComponentExtender.ForDisplayComponentAsync Method

Renders a display component.

Class: YetaWF.Core.Components.YetaWFComponentExtender
Namespace: YetaWF.Core.Components
Assembly: YetaWF.Core

Syntax

public static Task<string> ForDisplayComponentAsync(
    this YHtmlHelper htmlHelper,
    object container,
    string propertyName,
    object? propertyValue,
    string? uiHint,
    object? HtmlAttributes = null );

Parameters

htmlHelper

The HtmlHelper instance.

container

The container model where the specified property propertyName is located.

propertyName

The property name for which a component is rendered.

propertyValue

The property value.

uiHint

The component name used for rendering which identities the component. This may be null, in which case the property's UIHintAttribute is used instead.

HtmlAttributes

A collection of attributes.

Return Value

Returns HTML with the rendered component.

See Also YetaWF.Core.Components.YetaWFComponentExtender ClassYetaWF.Core Overview