Sisk

Method

HtmlElementExtensions.WithClass<THtmlElement>

Namespace
TinyComponents
Assembly
TinyComponents.dll

WithClass<THtmlElement>(THtmlElement, params string[]) #

Specifies the HTML element class list of this HtmlElement.

C#
public static THtmlElement WithClass<THtmlElement>(this THtmlElement node, params string[] classNames) where THtmlElement : HtmlElement

Parameters #

node THtmlElement

The current HtmlElement.

classNames string[]

One or more classes to add to this HtmlElement.

Returns #

THtmlElement

The self HtmlElement object for fluent chaining.

Type Parameters #

THtmlElement

The object type which implements HtmlElement.

Type to search the documentation and the API reference.