Method Create
- Namespace
- TinyComponents
- Assembly
- TinyComponents.dll
Create(string)
Creates an HtmlElement from the specified emmet template.
public static HtmlElement Create(string emmetString)
Parameters
emmetStringstring
Returns
Create(string, object?, object?, object?[]?, bool)
Creates an HtmlElement from the specified emmet template and adds the specified style, attributes, and children.
public static HtmlElement Create(string emmetString, object? style = null, object? attributes = null, object?[]? children = null, bool selfClosing = false)
Parameters
emmetStringstringThe emmet template string.
styleobjectAn object containing style properties to apply to the element. Can be null.
attributesobjectAn object containing attribute names and values to apply to the element. Can be null.
childrenobject[]An array of objects to put as children of the creating element. Can be null.
selfClosingboolAn boolean indicating if the creating element should be self-closed or not.
Returns
- HtmlElement
A new HtmlElement based on the emmet template with the specified style, attributes, and children.
Create(string, Action<HtmlElement>)
Creates an HtmlElement from the specified emmet template and configures it using the specified action.
public static HtmlElement Create(string emmetString, Action<HtmlElement> self)
Parameters
emmetStringstringThe emmet template string.
selfAction<HtmlElement>An action to configure the created HtmlElement.
Returns
- HtmlElement
A new HtmlElement based on the emmet template and configured using the specified action.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語