Method WithClass
- Namespace
- TinyComponents
- Assembly
- TinyComponents.dll
WithClass<THtmlElement>(THtmlElement, params string[])
Specifies the HTML element class list of this HtmlElement.
public static THtmlElement WithClass<THtmlElement>(this THtmlElement node, params string[] classNames) where THtmlElement : HtmlElement
Parameters
node
THtmlElementThe 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.