Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.YetaWFComponentExtender.ForDisplayAsAsync Method

Renders a display component.

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

Syntax

public static Task<string> ForDisplayAsAsync(
    this YHtmlHelper htmlHelper,
    object container,
    string propertyName,
    string fieldName,
    object realPropertyContainer,
    string realProperty,
    object? model,
    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.

fieldName

The HTML field name of the component.

realPropertyContainer

Instead of using the container container, this container model is used for rendering.

realProperty

Instead of using the property propertyName, this container model is used for rendering.

model

The container model.

uiHint

The component name used for rendering which identities the component.

HtmlAttributes

A collection of attributes.

Return Value

Returns HTML with the rendered components.

Remarks

This is used to render realProperty where propertyName should be rendered. This is typically used to render complex components in place of one simple property.

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