EZ HTML v2.0.2 Documentation


Table of Contents


Module: ezhtml [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

A simple library for programatically rendering HTML and client-side JavaScript using Node.js.


Class: ezhtml.Input [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML input elements.

new Input([data]) [top]

History

Added in: v0.1.0

Returns a new <Input> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

input.accept() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the types of files that the server accepts (only for input type file).

input.accept(types) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the types of files that the server accepts (only for input type file).

input.alt() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the alternate text for the input.

input.alt(text) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the alternate text for the input.

input.autocomplete() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a flag inicating whether the browser should enable autocomplete for this input, can be on or off.

input.autocomplete(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a flag inicating whether the browser should enable autocomplete for this input, can be on or off.

input.autofocus() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the button should automatically get focus when the page loads.

input.autofocus(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the button should automatically get focus when the page loads.

input.checked() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this input should be checked on page load, only for input types checkbox or radio.

input.checked(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this input should be checked on page load, only for input types checkbox or radio.

input.dirname() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the direction of the text that will be submitted.

input.dirname(dir) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the direction of the text that will be submitted.

input.disabled() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the button should be disabled.

input.disabled(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the button should be disabled.

input.form() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the id of the form that the button belongs to.

input.form(formId) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the id of the form that the button belongs to.

input.formaction() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets where to send the form-data when a form is submitted, only for type="submit".

input.formaction(action) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets where to send the form-data when a form is submitted, only for type="submit".

input.formenctype() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets how the form-data should be encoded before sending it to a server, only for type="submit".

input.formenctype(enctype) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets how the form-data should be encoded before sending it to a server, only for type="submit".

input.formmethod() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the HTTP method used to send the data, only for type="submit".

input.formmethod(method) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the HTTP method used to send the data, only for type="submit".

input.formnovalidate() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the form-data should not be validated on submission, only for type="submit".

input.formnovalidate(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the form-data should not be validated on submission, only for type="submit".

input.formtarget() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets where to display the response after submitting the form, only for type="submit".

input.formtarget(target) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets where to display the response after submitting the form, only for type="submit".

input.height() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the height of the input in pixels, only if input is of type image.

input.height(pixels) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the height of the input in pixels, only if input is of type image.

input.list() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the id of a <DataList> element that contains pre-defined options for this input.

input.list(list) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the id of a <DataList> element that contains pre-defined options for this input.

input.max() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the maximum value for ths input.

input.max(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0 Updated in: v0.3.0

Sets the maximum value for ths input.

input.maxlength() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the maximum length of characters allowed for ths input.

input.maxlength(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0 Updated in: v0.3.0

Sets the maximum length of characters allowed for ths input.

input.min() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the minimum value for ths input.

input.min(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0 Updated in: v0.3.0

Sets the minimum value for ths input.

input.multiple() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether multiple values can be entered in this input.

input.multiple(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether multiple values can be entered in this input.

input.name() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the name of this input.

input.name(name) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the name of this input.

input.pattern() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a regular expression that this input's value is validated against.

input.pattern(regex) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a regular expression that this input's value is validated against.

input.placeholder() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the placeholder value for ths input.

input.placeholder(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the placeholder value for ths input.

input.readonly() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this input is read only.

input.readonly(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this input is read only.

input.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

input.required() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this input is required.

input.required(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this input is required.

input.size() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the size of this input in characters.

input.size(size) [top]

History

Added in: v0.1.0 Updated in: v0.2.0 Updated in: v0.3.0

Sets the size of this input in characters.

input.src() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the URL of the image to use as a submit button (only for input type image).

input.src(url) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the URL of the image to use as a submit button (only for input type image).

input.step() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the step value for ths input.

input.step(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0 Updated in: v0.3.0

Sets the step value for ths input.

input.type() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the input type.

input.type(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the input type.

input.value() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the initial value for ths input.

input.value(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the initial value for ths input.

input.width() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the width of the input in pixels, only if input is of type image.

input.width(pixels) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the width of the input in pixels, only if input is of type image.


Class: ezhtml.Inserted [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML inserted elements.

new Inserted([data]) [top]

History

Added in: v0.1.0

Returns a new <Inserted> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

inserted.cite() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a URL to a document that explains the reason why the text was inserted.

inserted.cite(url) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a URL to a document that explains the reason why the text was inserted.

inserted.datetime() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the date and time of when the text was inserted.

inserted.datetime(datetime) [top]

History

Added in: v0.1.0 Updated in: v0.2.0
  • datetime <string> Required format: YYYY-MM-DDThh:mm:ssTZD
  • Throws <TypeError> if datetime is not a valid <string>
  • Returns <this>

Sets the date and time of when the text was inserted.

inserted.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Italic [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML italic elements.

new Italic([data]) [top]

History

Added in: v0.1.0

Returns a new <Italic> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

italic.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Keyboard [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML keyboard elements.

new Keyboard([data]) [top]

History

Added in: v0.1.0

Returns a new <Keyboard> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

keyboard.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Label [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML label elements.

new Label([data]) [top]

History

Added in: v0.1.0

Returns a new <Label> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

label.for() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the id of the input this label is for.

label.for(elementId) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the id of the input this label is for.

label.form() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the id of the form that this label belongs to.

label.form(formId) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the id of the form that this label belongs to.

label.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Legend [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML legend elements.

new Legend([data]) [top]

History

Added in: v0.1.0

Returns a new <Legend> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

legend.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.LineBreak [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML line break elements.

new LineBreak([data]) [top]

History

Added in: v0.1.0

Returns a new <LineBreak> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

lineBreak.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML link elements.

History

Added in: v0.1.0

Returns a new <Link> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

History

Added in: v0.1.0 Updated in: v0.2.0

Gets whether to allow links from third-party sites that allow cross-origin access, can be anonymous or `use-credentials`.

History

Added in: v0.1.0 Updated in: v0.2.0

Sets whether to allow links from third-party sites that allow cross-origin access, can be anonymous or `use-credentials`.

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the URL of the linked document.

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the URL of the linked document.

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the language of the linked document.

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the language of the linked document.

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the media device that the linked document is optimized for.

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the media device that the linked document is optimized for.

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the relationship between the current document and the linked document. This value is equired.

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the relationship between the current document and the linked document. This value is equired.

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the size of the icon, only for rel icon.

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the size of the icon, only for rel icon.

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the media type of the linked document.

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the media type of the linked document.


Class: ezhtml.ListItem [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML list item elements.

new ListItem([data]) [top]

History

Added in: v0.1.0

Returns a new <ListItem> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

listItem.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

listItem.value() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the value of the list item number that will be incremented from here on, only for list items in <OrderedList> elements.

listItem.value(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the value of the list item number that will be incremented from here on, only for list items in <OrderedList> elements.


Class: ezhtml.Main [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML main elements.

new Main([data]) [top]

History

Added in: v0.1.0

Returns a new <Main> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

main.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.MapElement [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML map elements.

new MapElement([data]) [top]

History

Added in: v0.1.0

Returns a new <MapElement> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

mapElement.name() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the name of this map.

mapElement.name(name) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the name of this map.

mapElement.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Mark [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML mark elements.

new Mark([data]) [top]

History

Added in: v0.1.0

Returns a new <Mark> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

mark.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Meta [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML meta elements.

new Meta([data]) [top]

History

Added in: v0.1.0

Returns a new <Meta> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

meta.charset() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the character encoding for the HTML document.

meta.charset(encoding) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the character encoding for the HTML document.

meta.content() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the value associated with the http-equiv or name attribute.

meta.content(content) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the value associated with the http-equiv or name attribute.

meta.httpEquiv() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the HTTP header representing the information/value of the content attribute, can be `content-type`, `default-style`, or refresh.

meta.httpEquiv(header) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the HTTP header representing the information/value of the content attribute, can be `content-type`, `default-style`, or refresh.

meta.name() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the name of the metadata.

meta.name(name) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the name of the metadata.

meta.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Meter [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML meter elements.

new Meter([data]) [top]

History

Added in: v0.1.0

Returns a new <Meter> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

meter.form() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the id of the form that this meter belongs to.

meter.form(formId) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the id of the form that this meter belongs to.

meter.high() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the range that is considered to be a high value.

meter.high(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the range that is considered to be a high value.

meter.low() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the range that is considered to be a low value.

meter.low(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the range that is considered to be a low value.

meter.max() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the maximum value of the range.

meter.max(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the maximum value of the range.

meter.min() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the minimum value of the range.

meter.min(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the minimum value of the range.

meter.optimum() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the optimal value for the gauge.

meter.optimum(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the optimal value for the gauge.

meter.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

meter.value() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the current value of the gauge.

meter.value(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the current value of the gauge.


Class: ezhtml.MultimediaObject [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML multimedia object elements.

new MultimediaObject([data]) [top]

History

Added in: v0.1.0

Returns a new <MultimediaObject> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

multimediaObject.data() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the URL of the resource to be used by the object.

multimediaObject.data(url) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the URL of the resource to be used by the object.

multimediaObject.form() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the id of the form that this object belongs to.

multimediaObject.form(formId) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the id of the form that this object belongs to.

multimediaObject.height() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the height of the object in pixels.

multimediaObject.height(pixels) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the height of the object in pixels.

multimediaObject.name() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the name of the object.

multimediaObject.name(name) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the name of the object.

multimediaObject.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

multimediaObject.type() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the media type of data specified in the data attribute.

multimediaObject.type(type) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the media type of data specified in the data attribute.

multimediaObject.usemap() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the ID of a <Map> element that should be used as a client-side iamge map.

multimediaObject.usemap(map) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the ID of a <Map> element that should be used as a client-side iamge map.

multimediaObject.width() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the width of the object in pixels.

multimediaObject.width(pixels) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the width of the object in pixels.


Class: ezhtml.Nav [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML nav elements.

new Nav([data]) [top]

History

Added in: v0.1.0

Returns a new <Nav> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

nav.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.NoScript [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML no-script elements.

new NoScript([data]) [top]

History

Added in: v0.1.0

Returns a new <NoScript> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

noScript.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.OptionGroup [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML option group elements.

new OptionGroup([data]) [top]

History

Added in: v0.1.0

Returns a new <OptionGroup> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

optionGroup.disabled() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this group of options should be disabled.

optionGroup.disabled(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this group of options should be disabled.

optionGroup.label() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the name of the option group, as shown to the user.

optionGroup.label(text) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the name of the option group, as shown to the user.

optionGroup.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Option [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML option elements.

new Option([data]) [top]

History

Added in: v0.1.0

Returns a new <Option> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

option.disabled() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this option should be disabled.

option.disabled(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this option should be disabled.

option.label() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the name of the option, as shown to the user.

option.label(text) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the name of the option, as shown to the user.

option.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

option.selected() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this option should be pre-selected when the page loads.

option.selected(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this option should be pre-selected when the page loads.

option.value() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the value of ths option.

option.value(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the value of ths option.


Class: ezhtml.OrderedList [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML ordered list elements.

new OrderedList([data]) [top]

History

Added in: v0.1.0

Returns a new <OrderedList> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

orderedList.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

orderedList.reversed() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this list should have its order reversed.

orderedList.reversed(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this list should have its order reversed.

orderedList.start() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the starting value to use for the list.

orderedList.start(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the starting value to use for the list.

orderedList.type() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the type of marker to use in the list, can be 1, A, a, I, or i.

orderedList.type(type) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the type of marker to use in the list, can be 1, A, a, I, or i.


Class: ezhtml.Output [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.2.0

Class for rendering HTML output elements.

new Output([data]) [top]

History

Added in: v0.1.0

Returns a new <Output> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

output.for() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a space delimited list of input ids that are used in computing this output.

output.for(elementIds) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a space delimited list of input ids that are used in computing this output.

output.form() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the id of the form that this output belongs to.

output.form(formId) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the id of the form that this output belongs to.

output.name() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the name of this output.

output.name(name) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the name of this output.

output.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Page [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v1.4.0

Class for rendering HTML elements using short-hand methods and auto-nesting.

page.render(indent) [top]

History

Added in: v1.4.0

Render this page with indent spaces of indentation before each line.

new Page(template) [top]

History

Added in: v1.4.0

Returns a new <Page> instance, initializing with , , and tags already included unless false is passed to the constructor.

page.abbreviation() [top]

History

Added in: v1.4.0

Returns a new <Abbreviation> instance, nesting inside the most recent

element, if one exists, otherwise the element.

page.abbreviation(nest) [top]

History

Added in: v1.4.0

Returns a new <Abbreviation> instance, nesting inside the most recent element specified by the string or string elements of nest, if provided, otherwise the most recent

element, if one exists, otherwise the element.

page.anchor(nest) [top]

History

Added in: v1.4.0

Returns a new <Anchor> instance, nesting inside the most recent element specified by the string or string elements of nest, if provided, otherwise the most recent

element, if one exists, otherwise the element.

page.area(nest) [top]

History

Added in: v1.4.0

Returns a new <Area> instance, nesting inside the most recent element specified by the string or string elements of nest, if provided, otherwise the most recent element.

page.article() [top]

History

Added in: v1.4.0

Returns a new <Article> instance, nesting inside the most recent element specified by the string or string elements of nest, if provided, otherwise the most recent

,
, or

page.aside() [top]

History

Added in: v1.4.0

Returns a new <Aside> instance, nesting inside the most recent element specified by the string or string elements of nest, if provided, otherwise the most recent

element, if one exists, otherwise the element.


Class: ezhtml.Paragraph [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML paragraph elements.

new Paragraph([data]) [top]

History

Added in: v0.1.0

Returns a new <Paragraph> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

paragraph.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Param [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML paran elements.

new Param([data]) [top]

History

Added in: v0.1.0

Returns a new <Param> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

param.name() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the name of this parameter.

param.name(name) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the name of this parameter.

param.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

param.value() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the value of this parameter.

param.value(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the value of this parameter.


Class: ezhtml.Picture [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML picture elements.

new Picture([data]) [top]

History

Added in: v0.1.0

Returns a new <Picture> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

picture.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.PreformattedText [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML preformatted text elements.

new PreformattedText([data]) [top]

History

Added in: v0.1.0

Returns a new <PreformattedText> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

preformattedText.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Progress [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML progress elements.

new Progress([data]) [top]

History

Added in: v0.1.0

Returns a new <Progress> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

progress.max() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the maximum value of the progress bar.

progress.max(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the maximum value of the progress bar.

progress.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

progress.value() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the current value of the progress bar.

progress.value(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the current value of the progress bar.


Class: ezhtml.Quotation [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML quotation elements.

new Quotation([data]) [top]

History

Added in: v0.1.0

Returns a new <Quotation> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

quotation.cite() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a URL to the source of the quotation.

quotation.cite(url) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a URL to the source of the quotation.

quotation.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Sample [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML sample elements.

new Sample([data]) [top]

History

Added in: v0.1.0

Returns a new <Sample> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

sample.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Script [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML script elements.

new Script([data]) [top]

History

Added in: v0.1.0

Returns a new <Script> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

script.asyncScript() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the script should be executed asynchronously (only for external scripts).

script.asyncScript(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the script should be executed asynchronously (only for external scripts).

script.charset() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the character encoding used by the script.

script.charset(encoding) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the character encoding used by the script.

script.defer() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the script should be executed when the page has finished parsing (only for external scripts).

script.defer(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the script should be executed when the page has finished parsing (only for external scripts).

script.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

script.src() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the URL of the external script file.

script.src(url) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the URL of the external script file.

script.type() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the media type of the script.

script.type(type) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the media type of the script.


Class: ezhtml.Section [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML section elements.

new Section([data]) [top]

History

Added in: v0.1.0

Returns a new <Section> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

section.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Select [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML select elements.

new Select([data]) [top]

History

Added in: v0.1.0

Returns a new <Select> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

select.autofocus() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the select box should automatically get focus when the page loads.

select.autofocus(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the select box should automatically get focus when the page loads.

select.disabled() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the select box should be disabled.

select.disabled(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the select box should be disabled.

select.form() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the id of the form that this select box belongs to.

select.form(formId) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the id of the form that this select box belongs to.

select.multiple() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this is a multiple-select box.

select.multiple(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this is a multiple-select box.

select.name() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the name of the select box.

select.name(name) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the name of the select box.

select.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

select.required() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this select box input is required.

select.required(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this select box input is required.

select.size() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the size of the select box, for multiple-select boxes only.

select.size(size) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the size of the select box, for multiple-select boxes only.


Class: ezhtml.Small [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML small elements.

new Small([data]) [top]

History

Added in: v0.1.0

Returns a new <Small> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

small.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Source [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.2.0

Class for rendering HTML source elements.

new Source([data]) [top]

History

Added in: v0.1.0

Returns a new <Source> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

source.media() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a valid media query that would normally be defined in a CSS.

source.media(query) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a valid media query that would normally be defined in a CSS.

source.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

source.sizes() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the image sizes for different page layouts.

source.sizes(sizes) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the image sizes for different page layouts.

source.src() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the URL of the media file, required when used in an <Audio> or <Source> element.

source.src(url) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the URL of the media file, required when used in an <Audio> or <Source> element.

source.srcset() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the URLs of the image to use in different situations.

source.srcset(urls) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the URLs of the image to use in different situations.

source.type() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the MIME-type of the resource.

source.type(type) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the MIME-type of the resource.


Class: ezhtml.Span [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML span elements.

new Span([data]) [top]

History

Added in: v0.1.0

Returns a new <Span> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

span.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Strikethrough [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML strikethrough elements.

new Strikethrough([data]) [top]

History

Added in: v0.1.0

Returns a new <Strikethrough> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

strikethrough.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Strong [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML strong elements.

new Strong([data]) [top]

History

Added in: v0.1.0

Returns a new <Strong> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

strong.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Style [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML style elements.

new Style([data]) [top]

History

Added in: v0.1.0

Returns a new <Style> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

style.media() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the media device that the linked document is optimized for.

style.media(device) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the media device that the linked document is optimized for.

style.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

style.scoped() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the styles only apply to this element's parent element and that element's child elements (not the entire document). At the time of v0.2.0, this is only supported by Firefox.

style.scoped(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the styles only apply to this element's parent element and that element's child elements (not the entire document). At the time of v0.2.0, this is only supported by Firefox.

style.type() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the media type of the style.

style.type(type) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the media type of the style.


Class: ezhtml.Subscript [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML subscript elements.

new Subscript([data]) [top]

History

Added in: v0.1.0

Returns a new <Subscript> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

subscript.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Summary [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML summary elements.

new Summary([data]) [top]

History

Added in: v0.1.0

Returns a new <Summary> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

summary.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Superscript [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML superscript elements.

new Superscript([data]) [top]

History

Added in: v0.1.0

Returns a new <Superscript> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

superscript.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.SVG [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML SVG elements.

new SVG([data]) [top]

History

Added in: v0.1.0

Returns a new <SVG> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

sVG.height() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the height of the SVG in pixels.

sVG.height(pixels) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the height of the SVG in pixels.

sVG.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

sVG.width() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the width of the SVG in pixels.

sVG.width(pixels) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the width of the SVG in pixels.


Class: ezhtml.TableBody [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML table body elements.

new TableBody([data]) [top]

History

Added in: v0.1.0

Returns a new <TableBody> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

tableBody.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.TableData [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML table data elements.

new TableData([data]) [top]

History

Added in: v0.1.0

Returns a new <TableData> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

tableData.colspan() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the number of columns the cell should span.

tableData.colspan(span) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the number of columns the cell should span.

tableData.headers() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets one or more header cells a cell is related to.

tableData.headers(headers) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets one or more header cells a cell is related to.

tableData.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

tableData.rowspan() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the number of rows the cell should span.

tableData.rowspan(span) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the number of rows the cell should span.


Class: ezhtml.TableFooter [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML table footer elements.

new TableFooter([data]) [top]

History

Added in: v0.1.0

Returns a new <TableFooter> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

tableFooter.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.TableHead [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML table head elements.

new TableHead([data]) [top]

History

Added in: v0.1.0

Returns a new <TableHead> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

tableHead.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.TableHeader [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML table header elements.

new TableHeader([data]) [top]

History

Added in: v0.1.0

Returns a new <TableHeader> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

tableHeader.abbr() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets an abbreviation for the header.

tableHeader.abbr(elementId) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets an abbreviation for the header.

tableHeader.colspan() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the number of columns the header cell should span.

tableHeader.colspan(span) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the number of columns the header cell should span.

tableHeader.headers() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a list of ids of one or more other header cells this header cell is related to.

tableHeader.headers(headers) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a list of ids of one or more other header cells this header cell is related to.

tableHeader.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

tableHeader.rowspan() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the number of rows the header cell should span.

tableHeader.rowspan(span) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the number of rows the header cell should span.

tableHeader.scope() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the type of element this header is being used to represent, can be col, colgroup, row, or rowgroup.

tableHeader.scope(type) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the type of element this header is being used to represent, can be col, colgroup, row, or rowgroup.

tableHeader.sorted() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the sort direction of the column, can be reversed, number, `reversed number`, or `number reversed`.

tableHeader.sorted(elementId) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the sort direction of the column, can be reversed, number, `reversed number`, or `number reversed`.


Class: ezhtml.TableRow [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML table row elements.

new TableRow([data]) [top]

History

Added in: v0.1.0

Returns a new <TableRow> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

tableRow.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Table [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML table elements.

new Table([data]) [top]

History

Added in: v0.1.0

Returns a new <Table> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

table.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Template [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML template elements.

new Template([data]) [top]

History

Added in: v0.1.0

Returns a new <Template> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

template.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.TextArea [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML text area elements.

new TextArea([data]) [top]

History

Added in: v0.1.0

Returns a new <TextArea> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

textArea.autofocus() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the text area should automatically get focus when the page loads.

textArea.autofocus(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the text area should automatically get focus when the page loads.

textArea.cols() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the number of characters per row in the text area.

textArea.cols(columns) [top]

History

Added in: v0.1.0 Updated in: v0.2.0 Updated in: v0.3.2

Sets the number of characters per row in the text area.

textArea.dirname() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the direction of the text that will be submitted.

textArea.dirname(dir) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the direction of the text that will be submitted.

textArea.disabled() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the text area should be disabled.

textArea.disabled(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the text area should be disabled.

textArea.form() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the id of the form that the text area belongs to.

textArea.form(formId) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the id of the form that the text area belongs to.

textArea.maxlength() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the maximum length of characters allowed for ths input.

textArea.maxlength(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0 Updated in: v0.3.2

Sets the maximum length of characters allowed for ths input.

textArea.name() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the name of the text area.

textArea.name(name) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the name of the text area.

textArea.placeholder() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the placeholder value for ths text area.

textArea.placeholder(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the placeholder value for ths text area.

textArea.readonly() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this text area is read only.

textArea.readonly(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this text area is read only.

textArea.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

textArea.required() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether this text area is required.

textArea.required(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether this text area is required.

textArea.rows() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the number of rows that should be visible in this text area at any given time.

textArea.rows(value) [top]

History

Added in: v0.1.0 Updated in: v0.2.0 Updated in: v0.3.2

Sets the number of rows that should be visible in this text area at any given time.

textArea.wrap() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the type of text wrapping to be used in the text area, can be hard or soft.

textArea.wrap(type) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the type of text wrapping to be used in the text area, can be hard or soft.


Class: ezhtml.Text [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering plain text in HTML elements.

new Text([data]) [top]

History

Added in: v0.1.0

Returns a new <Text> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

text.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

text.text() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the plain text content of this text pseudo-element.

text.text(text) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the plain text content of this text pseudo-element.


Class: ezhtml.Time [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML time elements.

new Time([data]) [top]

History

Added in: v0.1.0

Returns a new <Time> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

time.datetime() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the date and time represented by this element.

time.datetime(datetime) [top]

History

Added in: v0.1.0 Updated in: v0.2.0
  • datetime <string> Many formats supported, see HTML 5 documentation
  • Throws <TypeError> if datetime is not a valid <string>
  • Returns <this>

Sets the date and time represented by this element.

time.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Title [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML title elements.

new Title([data]) [top]

History

Added in: v0.1.0

Returns a new <Title> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

title.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Track [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML track elements.

new Track([data]) [top]

History

Added in: v0.1.0

Returns a new <Track> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

track.default() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate.

track.default(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate.

track.kind() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the kind of text track, can be captions, chapters, descriptions, metadata, or subtitles.

track.kind(kind) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the kind of text track, can be captions, chapters, descriptions, metadata, or subtitles.

track.label() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the title of the text track.

track.label(text) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the title of the text track.

track.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

track.src() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the URL of the track file, this attribute is required.

track.src(url) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the URL of the track file, this attribute is required.

track.srclang() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the language of the track text data.

track.srclang(lang) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the language of the track text data.


Class: ezhtml.Underline [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML underline elements.

new Underline([data]) [top]

History

Added in: v0.1.0

Returns a new <Underline> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

underline.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.UnorderedList [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML unordered list elements.

new UnorderedList([data]) [top]

History

Added in: v0.1.0

Returns a new <UnorderedList> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

unorderedList.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Variable [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML variable elements.

new Variable([data]) [top]

History

Added in: v0.1.0

Returns a new <Variable> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

variable.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.


Class: ezhtml.Video [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0 Updated in: v0.2.0

Class for rendering HTML video elements.

new Video([data]) [top]

History

Added in: v0.1.0

Returns a new <Video> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

video.autoplay() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the video should start playing as soon as it is ready.

video.autoplay(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the video should start playing as soon as it is ready.

video.controls() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the video controls should be displayed.

video.controls(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the video controls should be displayed.

video.height() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the height of the video in pixels.

video.height(pixels) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the height of the video in pixels.

video.loop() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the video should start over again, every time it is finished.

video.loop(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the video should start over again, every time it is finished.

video.muted() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets a boolean indicating whether the video output should be muted.

video.muted(flag) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets a boolean indicating whether the video output should be muted.

video.poster() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the URL of an image to be shown while the video is downloading, or until the user hits the play button.

video.poster(url) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the URL of an image to be shown while the video is downloading, or until the user hits the play button.

video.preload() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the preferred method for loading the video.

video.preload(method) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the preferred method for loading the video.

video.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.

video.src() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the URL of the video file.

video.src(url) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the URL of the video file.

video.width() [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Gets the width of the video in pixels.

video.width(pixels) [top]

History

Added in: v0.1.0 Updated in: v0.2.0

Sets the width of the video in pixels.


Class: ezhtml.WordBreakOpportunity [top]

Copyright © 2018 Rich Lowe
Written by: Rich Lowe

History

Added in: v0.1.0

Class for rendering HTML word break opportunity elements.

new WordBreakOpportunity([data]) [top]

History

Added in: v0.1.0

Returns a new <WordBreakOpportunity> instance, initializing with any key/value pairs provided in data with keys that match setter method names.

wordBreakOpportunity.render(indent) [top]

History

Added in: v0.1.0

Render this element with indent spaces of indentation before each line.