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
nodeTHtmlElementThe current HtmlElement.
classNamesstring[]One or more classes to add to this HtmlElement.
Returns
- THtmlElement
The self HtmlElement object for fluent chaining.
Type Parameters
THtmlElementThe object type which implements HtmlElement.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語