Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.YetaWFComponentExtender.ForEditAsync Method

Renders an edit component.

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

Syntax

public static Task<string> ForEditAsync(
    this YHtmlHelper htmlHelper,
    object container,
    string propertyName,
    object? HtmlAttributes = null,
    bool Validation = true,
    string? UIHint = 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.

HtmlAttributes

A collection of attributes.

Validation

Defines whether client-side validation is used.

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.

Return Value

Returns HTML with the rendered component.

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