Element

Wrapper around a html element.

Constructors

this
this(string tagName)

Creates a new html element.

Members

Functions

addAttribute
void addAttribute(string name, T value)

Adds an attribute to the html element.

attributeHtml
string attributeHtml()

Gets the attribute html.

generateHtml
string generateHtml()

Generates the appropriate html for the element.

getAttribute
T getAttribute(string name, T defaultValue)

Gets an attribute from the html element.

toString
string toString()

Gets the html representation of the element.

Properties

id
string id [@property getter]

Gets the id of the element.

id
string id [@property setter]

Sets the id of the element.

inner
string inner [@property getter]

Gets the inner text representation.

inner
string inner [@property setter]

Sets the inner text representation.

name
string name [@property getter]

Gets the name of the element.

name
string name [@property setter]

Sets the name of the element.

tagName
string tagName [@property getter]

Gets the tag name.

Meta