Sisk

Method

HtmlElement.Fragment

Namespace
TinyComponents
Assembly
TinyComponents.dll

Fragment(params object?[]) #

Creates an fragment HtmlElement with specified children.

C#
public static HtmlElement Fragment(params object?[] children)

Parameters #

children object?[]

An array of objects to put as children of the creating fragment.

Returns #

HtmlElement

Fragment(Action<HtmlElement>) #

Creates an fragment HtmlElement with specified self-action.

C#
public static HtmlElement Fragment(Action<HtmlElement> action)

Parameters #

action Action<HtmlElement>

An action that defines content for the creating HTML element.

Returns #

HtmlElement

Type to search the documentation and the API reference.