Method WithStyle
- Namespace
- TinyComponents
- Assembly
- TinyComponents.dll
WithStyle<THtmlElement>(THtmlElement, object)
Adds css styles through the style attribute on this HtmlElement.
public static THtmlElement WithStyle<THtmlElement>(this THtmlElement node, object styleObject) where THtmlElement : HtmlElement
Parameters
node
THtmlElementThe current HtmlElement.
styleObject
objectThe object which contains CSS properties and values to style the component.
Returns
- THtmlElement
The self HtmlElement object for fluent chaining.
Type Parameters
THtmlElement
The object type which implements HtmlElement.