Input

Wrapper around an input element.

Constructors

this
this()

Creates a new input element.

this
this(string tagName)
Undocumented in source.

Members

Functions

generateHtml
string generateHtml()

Generates the appropriate html for the element.

Properties

label
string label [@property getter]

Gets the label.

label
string label [@property setter]

Sets the label.

placeholder
string placeholder [@property getter]

Gets the placeholder.

placeholder
string placeholder [@property setter]

Sets the placeholder.

value
string value [@property getter]

Gets the value.

value
string value [@property setter]

Sets the value.

Inherited Members

From Element

generateHtml
string generateHtml()

Generates the appropriate html for the element.

tagName
string tagName [@property getter]

Gets the tag name.

inner
string inner [@property getter]

Gets the inner text representation.

inner
string inner [@property setter]

Sets the inner text representation.

id
string id [@property getter]

Gets the id of the element.

id
string id [@property setter]

Sets the id of the element.

name
string name [@property getter]

Gets the name of the element.

name
string name [@property setter]

Sets the name of the element.

addAttribute
void addAttribute(string name, T value)

Adds an attribute to the html 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.

attributeHtml
string attributeHtml()

Gets the attribute html.

Meta