Menu

class: Pre

[663:7] extends: TextNode

Represents an HTML 'pre' element. The Pre class preserves whitespace and formatting, useful for displaying code or preformatted text.

Methods

  • Pre (string TextContent = null)

    Constructs a 'pre' element with optional preformatted text.

    • @p TextContent Optional preformatted content.

class: Nav

[1245:7] extends: HNode

Represents an HTML 'nav' element. The Nav class defines a section of navigation links.

Methods

  • Nav ()

    Constructs a 'nav' element.

class: Email

[1914:7] extends: Input

Represents an HTML 'email' input. The Email class creates an input for email address entry.

Methods

  • Email (string name, string value = null)

    Constructs an 'email' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial email value.

class: hnode

[378:14] static extends: object

Static class which implements common HTML functions.

Methods

  • getHNodeFromExtern (object ExternObj)

    Get the HNode for the provided extern object.

    • @p ExternObj is the extern object to get the HNode for.
    • @r A HNode instance with the object.

class: Label

[1332:7] extends: HNode

Represents an HTML 'label' element. The Label class associates descriptive text with form inputs.

Methods

  • Label (string text = null)

    Constructs a 'label' element with the given text.

    • @p text A string to set as the label content.
  • setText (string AnchorText)

    Sets the text content of the label.

    • @p AnchorText A string to display in the label.
  • getText ()

    Gets the text content of the label.

    • @r A string containing the label's text.
  • setFor (string forStr)

    Sets the "for" attribute to link the label to an input.

    • @p forStr A string ID of the associated input element.
    • @r This object.
  • getFor ()

    Gets the value of the "for" attribute.

    • @r A string with the target input ID or an empty string.

class: Strong

[646:7] extends: TextNode

Represents an HTML 'strong' element. The Strong class is used to indicate strong importance, typically rendered in bold.

Methods

  • Strong (string TextContent = null)

    Constructs a 'strong' element with optional text.

    • @p TextContent Optional text content to emphasize.

class: Tfoot

[908:7] extends: HNode

Represents an HTML 'tfoot' element. The Tfoot class defines a footer for a table.

Methods

  • Tfoot ()

    Constructs a 'tfoot' element.

class: DateTime

[1899:7] extends: Input

Represents an HTML 'datetime-local' input. The DateTime class creates an input for date and time selection.

Methods

  • DateTime (string name, string value = null)

    Constructs a 'datetime-local' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial value.

class: Td

[865:7] extends: HNode

Represents an HTML 'td' element. The Td class defines a cell in a table row.

Methods

  • Td (Value = null)

    Constructs a 'td' element with optional content.

    • @p Value Optional content to add inside the cell.

class: Month

[1944:7] extends: Input

Represents an HTML 'month' input. The Month class creates an input for selecting a month and year.

Methods

  • Month (string name, string value = null)

    Constructs a 'month' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial month value.
  • setMin (string min)

    Sets the minimum year-month value.

    • @p min A string representing the minimum year-month value (e.g., 2019-12).
    • @r This object.
  • getMin ()

    Gets the minimum year-month value.

    • @r A string representing the minimum value or an empty string if not set.

class: Input

[1394:7] extends: HNode

Represents an HTML 'input' element. The Input class is used to create various types of form input controls.

Methods

  • Input (string type = null, string name = null, string value = null)

    Constructs an 'input' element with type, name, and optional value.

    • @p type A string with the input type (e.g., 'text', 'checkbox').
    • @p name A string for the input's name attribute.
    • @p value An optional string to set the input's value.
  • setType (string type)

    Sets the input type.

    • @p type A string like 'text', 'password', etc.
    • @r This object.
  • getType ()

    Gets the input type.

    • @r A string with the input type.
  • setName (string name)

    Sets the name attribute.

    • @p name A string to set as the input name.
    • @r This object.
  • getName ()

    Gets the name attribute.

    • @r A string with the input name or an empty string.
  • setValue (value)

    Sets the value of the input.

    • @p value A value to assign to the input.
    • @r This object.
  • getValue ()

    Gets the current value of the input.

    • @r The input's value as a string.
  • setPlaceholder (string placeholder)

    Sets the placeholder attribute.

    • @p placeholder A string shown when the input is empty.
    • @r This object.
  • getPlaceholder ()

    Gets the placeholder attribute.

    • @r A string with the placeholder or an empty string.
  • setRequired (string required)

    Sets the input as required.

    • @p required A string value such as 'true' to mark the input required.
    • @r This object.
  • getRequired ()

    Gets the required attribute value.

    • @r A string with the required attribute or empty string.

class: Th

[921:7] extends: HNode

Represents an HTML 'th' element. The Th class defines a header cell in a table.

Methods

  • Th (Value = null)

    Constructs a 'th' element with optional content.

    • @p Value Optional content to add inside the header cell.

class: Button

[799:7] extends: HNode

Represents an HTML 'button' element. The Button class creates a clickable button element.

Methods

  • Button (string text = "")

    Constructs a 'button' element with optional label text.

    • @p text A string to use as the button label.
  • setText (string AnchorText)

    Sets the button text.

    • @p AnchorText A string to display inside the button.
  • getText ()

    Gets the current button text.

    • @r A string with the button's displayed text.

class: Checkbox

[1816:7] extends: Input

Represents an HTML 'checkbox' input. The Checkbox class creates a checkbox input element.

Methods

  • Checkbox (string name, string value = null)

    Constructs a 'checkbox' input with the given name and optional value.

    • @p name A string for the checkbox name.
    • @p value An optional string to set the checkbox value.
  • setChecked (bool checked)

    Sets the checked state of the checkbox.

    • @p checked A bool with true to check the checkbox, false to uncheck it.
    • @r This object.
  • getChecked ()

    Gets the checked state of the checkbox.

    • @r A bool with true if checked, false otherwise.

class: Hidden

[2060:7] extends: Input

Represents an HTML 'hidden' input. The Hidden class creates an input element that is not visible to the user.

Methods

  • Hidden (string name, string value = null)

    Constructs a 'hidden' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial value.

class: Reset

[2223:7] extends: Input

Represents an HTML 'reset' input. The Reset class creates an input element that resets a form's fields.

Methods

  • Reset (string name, string value = null)

    Constructs a 'reset' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the reset button's value.

class: Li

[940:7] extends: HNode

Methods

  • Li (Value = null)

class: Tr

[852:7] extends: HNode

Represents an HTML 'tr' element. The Tr class defines a row in a table.

Methods

  • Tr ()

    Constructs a 'tr' (table row) element.

class: Img

[953:7] extends: HNode

Represents an HTML 'img' element. The Img class is used to embed an image in the document.

Methods

  • Img (string src = null, string alt = null)

    Constructs an 'img' element with optional source and alt text.

    • @p src Optional string for the image source path.
    • @p alt Optional string for alternative text.
  • setAlt (string alt)

    Sets the alt attribute for the image.

    • @p alt A string representing alternative text.
    • @r This object.
  • getAlt ()

    Gets the alt attribute of the image.

    • @r A string with the alternative text or an empty string if not set.
  • setSrc (string src)

    Sets the src attribute for the image.

    • @p src A string with the image source URL.
    • @r This object.
  • getSrc ()

    Gets the src attribute of the image.

    • @r A string with the image source URL or an empty string if not set.
  • setDim (width, height)

    Sets both the width and height attributes.

    • @p width Width to set.
    • @p height Height to set.
    • @r This object.
  • setWidth (width)

    Sets the width attribute of the image.

    • @p width Width value to set.
    • @r This object.
  • getWidth ()

    Gets the width attribute of the image.

    • @r The width as a string, or -1 if not set.
  • setHeight (height)

    Sets the height attribute of the image.

    • @p height Height value to set.
    • @r This object.
  • getHeight ()

    Gets the height attribute of the image.

    • @r The height as a string, or -1 if not set.

class: Color

[1929:7] extends: Input

Represents an HTML 'color' input. The Color class creates an input for selecting a color.

Methods

  • Color (string name, string value = null)

    Constructs a 'color' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial color value.

class: Hr

[582:7] extends: HNode

Represents an HTML 'hr' (horizontal rule) element. The Hr class renders a thematic break between paragraph-level elements.

Methods

  • Hr ()

    Constructs a 'hr' (horizontal rule) element.

class: Range

[2149:7] extends: Input

Represents an HTML 'range' input. The Range class creates an input for selecting a value within a specified range.

Methods

  • Range (string name, string value = null)

    Constructs a 'range' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial value.
  • setMin (min)

    Sets the minimum value for the input.

    • @p min A number to set as the minimum value.
    • @r This object.
  • getMin ()

    Gets the minimum value of the input.

    • @r A string with the minimum value or an empty string.
  • setMax (max)

    Sets the maximum value for the input.

    • @p max A number to set as the maximum value.
    • @r This object.
  • getMax ()

    Gets the maximum value of the input.

    • @r A string with the maximum value or an empty string.

class: Video

[1066:7] extends: HNode

Represents an HTML 'video' element. The Video class is used to embed video content.

Methods

  • Video (string src = null)

    Constructs a 'video' element with optional source.

    • @p src Optional string for the video source.
  • setAutoplay (bool Autoplay)

    Sets the autoplay flag on the video.

    • @p Autoplay A bool with true to enable autoplay, false to disable.
    • @r This object.
  • setControls (bool Controls)

    Sets the controls flag on the video.

    • @p Controls A bool with true to show controls, false to hide them.
    • @r This object.
  • setLoop (bool Loop)

    Sets the loop flag on the video.

    • @p Loop A bool with true to loop the video, false to stop at end.
    • @r This object.
  • setMuted (bool Muted)

    Sets the muted flag on the video.

    • @p Muted A bool with true to mute the video, false to play with sound.
    • @r This object.
  • setPoster (string poster)

    Sets the poster image for the video.

    • @p poster A string URL for the poster image.
    • @r This object.
  • getPoster ()

    Gets the poster image value.

    • @r A string with the poster URL or an empty string.
  • setPreload (string preload)

    Sets the preload behavior for the video.

    • @p preload A string value such as 'auto', 'metadata', or 'none'.
    • @r This object.
  • getPreload ()

    Gets the preload value for the video.

    • @r A string with the preload value or an empty string.

class: Ul

[934:7] extends: HNode

Methods

  • Ul ()

class: Option

[1747:7] extends: HNode

Represents an HTML 'option' element. The Option class defines a selectable option inside a 'select' element.

Methods

  • Option (string text = null, string value = null)

    Constructs an 'option' element with the given text and optional value.

    • @p text The visible text for the option.
    • @p value An optional value for the option.
  • setValue (string value)

    Sets the value attribute of the option.

    • @p value A string to set as the option value.
    • @r This object.
  • getValue ()

    Gets the value attribute of the option.

    • @r A string with the option value.
  • setText (string AnchorText)

    Sets the text content of the option.

    • @p AnchorText A string to display in the option.
    • @r This object.
  • getText ()

    Gets the text content of the option.

    • @r A string with the option's text.

class: Tbody

[895:7] extends: HNode

Represents an HTML 'tbody' element. The Tbody class groups the body content in a table.

Methods

  • Tbody ()

    Constructs a 'tbody' element.

class: Week

[2305:7] extends: Input

Represents an HTML 'week' input. The Week class creates an input for selecting a week and year.

Methods

  • Week (string name, string value = null)

    Constructs a 'week' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial week value.

class: A

[519:7] extends: TextNode

Represents an HTML 'a' (anchor) element. The A class is used to create hyperlinks with optional target and text content.

Methods

  • A (string text = "", string href = "")

    Constructs an 'a' (anchor) element with optional text and href.

    • @p text The link text to display.
    • @p href The hyperlink target URL.
    • @r this object
  • setHref (string Href)

    Sets the href attribute.

    • @p Href A string representing the target URL.
    • @r this object
  • getHref ()

    Gets the href attribute.

    • @r A string with the href value.
  • setTarget (string Target)

    Sets the target attribute.

    • @p Target A string representing the link target (e.g., "_blank").
    • @r this object

class: B

[612:7] extends: TextNode

Represents an HTML 'b' (bold) element. The B class is used to display bold text content.

Methods

  • B (string TextContent = null)

    Constructs a 'b' (bold) element with optional text.

    • @p TextContent Optional text content to display in bold.

class: Form

[1258:7] extends: HNode

Represents an HTML 'form' element. The Form class is used to create and manage form submission.

Methods

  • Form (string action = null, string method = null)

    Constructs a 'form' element with optional action and method.

    • @p action Optional URL to which the form will be submitted.
    • @p method Optional HTTP method to use (e.g., 'get', 'post').
  • setAction (string action)

    Sets the form's action attribute.

    • @p action A string with the form submission URL.
    • @r This object.
  • getAction ()

    Gets the form's action URL.

    • @r A string with the action URL or an empty string.
  • setMethod (string method)

    Sets the form's HTTP method.

    • @p method A string such as 'get' or 'post'.
    • @r This object.
  • getMethod ()

    Gets the form's method.

    • @r A string with the method value or an empty string.
  • blockSubmit ()

    Prevents the form from submitting when used with JavaScript.

    • @r This object.

class: I

[629:7] extends: TextNode

Represents an HTML 'i' (italic) element. The I class is used to display italicized text content.

Methods

  • I (string TextContent = null)

    Constructs an 'i' (italic) element with optional text.

    • @p TextContent Optional text content to display in italics.

class: FileInput

[1981:7] extends: Input

Represents an HTML 'file' input. The FileInput class creates an input element for file selection.

Methods

  • FileInput (string name, list accept)

    Constructs a 'file' input with the given name and accepted file types.

    • @p name A string for the input's name.
    • @p accept A list of acceptable file types (e.g., ['image/png', 'video/*']).
  • setAccept (list accept)

    Sets the list of acceptable file types.

    • @p accept A list of acceptable file types.
    • @r This object.
  • getAccept ()

    Gets the list of acceptable file types.

    • @r A list of strings with accepted file types.
  • setMultiple (bool multiple)

    Sets whether multiple files can be selected.

    • @p multiple A bool with true to allow multiple files, false to restrict to one.
    • @r This object.
  • getMultiple ()

    Gets whether multiple files can be selected.

    • @r A bool with true if multiple files are allowed, false otherwise.
  • getFiles ()

    Gets the selected files. Must be called after the input is added to the DOM.

    • @r A list of file objects or an empty list.

class: Time

[2275:7] extends: Input

Represents an HTML 'time' input. The Time class creates an input for selecting a time value.

Methods

  • Time (string name, string value = null)

    Constructs a 'time' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial time value.

class: Span

[782:7] extends: TextNode

Represents an HTML 'span' element. The Span class is an inline container typically used to style parts of text.

Methods

  • Span (string TextContent = null)

    Constructs a 'span' element with optional text content.

    • @p TextContent Optional text to set in the span.

class: Source

[1183:7] extends: HNode

Represents an HTML 'source' element. The Source class is used as a media source for 'video' or 'audio'.

Methods

  • Source (string src = null, string type = null)

    Constructs a 'source' element with optional src and type.

    • @p src Optional source file path.
    • @p type Optional media MIME type.
  • setSrc (string src)

    Sets the source path of the media file.

    • @p src A string URL to the media file.
    • @r This object.
  • getSrc ()

    Gets the source path of the media file.

    • @r A string with the source path or an empty string.
  • setType (string type)

    Sets the type of media (e.g., video/mp4).

    • @p type A string representing the media MIME type.
    • @r This object.
  • getType ()

    Gets the media MIME type.

    • @r A string with the type or an empty string.

class: Url

[2290:7] extends: Input

Represents an HTML 'url' input. The Url class creates an input for entering a URL.

Methods

  • Url (string name, string value = null)

    Constructs a 'url' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial URL value.

class: P

[595:7] extends: TextNode

Represents an HTML 'p' (paragraph) element. The P class is used to display blocks of text.

Methods

  • P (string TextContent = null)

    Constructs a 'p' (paragraph) element with optional text.

    • @p TextContent Optional text content for the paragraph.

class: Textarea

[1526:7] extends: HNode

Represents an HTML 'textarea' element. The Textarea class is used for multi-line text input.

Methods

  • Textarea (string name = null, string text = null)

    Constructs a 'textarea' element with name and optional text.

    • @p name A string to identify the input field.
    • @p text Optional text to display inside the textarea.
  • setName (string name)

    Sets the name of the textarea.

    • @p name A string to set as the name.
    • @r This object.
  • getName ()

    Gets the name of the textarea.

    • @r A string with the name or empty string.
  • setText (string AnchorText)

    Sets the text content of the textarea.

    • @p AnchorText A string to display inside the textarea.
  • getText ()

    Gets the current text content.

    • @r A string containing the textarea text.
  • setRows (rows)

    Sets the number of visible text lines.

    • @p rows An integer number of rows.
    • @r This object.
  • getRows ()

    Gets the number of rows.

    • @r An integer number of rows, or -1 if not set.
  • setCols (cols)

    Sets the number of visible columns.

    • @p cols An integer number of columns.
    • @r This object.
  • getCols ()

    Gets the number of columns.

    • @r An integer number of columns, or -1 if not set.
  • getValue ()

    Gets the textarea's value from the DOM. Must be called after added to the DOM.

    • @r A string with the value.
  • setValue (string value)

    Sets the value and syncs it with the DOM. Must be called after added to the DOM.

    • @p value A string to set as the textarea value.
    • @r This object.

class: Number

[2075:7] extends: Input

Represents an HTML 'number' input. The Number class creates an input element for numeric values.

Methods

  • Number (string name, string value = null)

    Constructs a 'number' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial value.
  • setMin (min)

    Sets the minimum value for the input.

    • @p min A number to set as the minimum value.
    • @r This object.
  • getMin ()

    Gets the minimum value of the input.

    • @r A string with the minimum value or an empty string.
  • setMax (max)

    Sets the maximum value for the input.

    • @p max A number to set as the maximum value.
    • @r This object.
  • getMax ()

    Gets the maximum value of the input.

    • @r A string with the maximum value or an empty string.

class: Password

[2134:7] extends: Input

Represents an HTML 'password' input. The Password class creates an input element for password entry.

Methods

  • Password (string name, string value = null)

    Constructs a 'password' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial password value.

class: Table

[839:7] extends: HNode

Represents an HTML 'table' element. The Table class creates a structured table layout for tabular data.

Methods

  • Table ()

    Constructs a 'table' element.

class: Thead

[882:7] extends: HNode

Represents an HTML 'thead' element. The Thead class groups the header content in a table.

Methods

  • Thead ()

    Constructs a 'thead' element.

class: H1

[680:7] extends: TextNode

Represents an HTML heading 'h1' element. The H1 class displays the highest-level heading.

Methods

  • H1 (string Title = null)

    Constructs an 'h1' element with optional title text.

    • @p Title Optional heading text to display.

class: TextNode

[495:7] extends: HNode

Base class for all text-containing HTML elements like 'p', 'span', 'b', etc. Provides shared text getter and setter functionality.

Methods

  • setText (string TextContent)

    Sets the text content of this text-based node.

    • @p TextContent A string to set as the content.
    • @r this object
  • getText ()

    Gets the text content of this text-based node.

    • @r A string containing the text.

class: H2

[697:7] extends: TextNode

Represents an HTML heading 'h2' element. The H2 class displays the second-level heading.

Methods

  • H2 (string Title = null)

    Constructs an 'h2' element with optional title text.

    • @p Title Optional heading text to display.

class: Radio

[1849:7] extends: Input

Represents an HTML 'radio' input. The Radio class creates a radio button input element.

Methods

  • Radio (string id, string name, string value = null)

    Constructs a 'radio' input with the given ID, name, and optional value.

    • @p id A string ID to identify the radio button.
    • @p name A string for the radio button group name.
    • @p value An optional string to set the radio button value.
  • setChecked (bool checked)

    Sets the checked state of the radio button.

    • @p checked A bool with true to check the radio button, false to uncheck it.
    • @r This object.
  • getChecked ()

    Gets the checked state of the radio button.

    • @r A bool with true if checked, false otherwise.

class: H3

[714:7] extends: TextNode

Represents an HTML heading 'h3' element. The H3 class displays the third-level heading.

Methods

  • H3 (string Title = null)

    Constructs an 'h3' element with optional title text.

    • @p Title Optional heading text to display.

class: H4

[731:7] extends: TextNode

Represents an HTML heading 'h4' element. The H4 class displays the fourth-level heading.

Methods

  • H4 (string Title = null)

    Constructs an 'h4' element with optional title text.

    • @p Title Optional heading text to display.

class: H5

[748:7] extends: TextNode

Represents an HTML heading 'h5' element. The H5 class displays the fifth-level heading.

Methods

  • H5 (string Title = null)

    Constructs an 'h5' element with optional title text.

    • @p Title Optional heading text to display.

class: H6

[765:7] extends: TextNode

Represents an HTML heading 'h6' element. The H6 class displays the sixth-level heading.

Methods

  • H6 (string Title = null)

    Constructs an 'h6' element with optional title text.

    • @p Title Optional heading text to display.

class: Div

[475:7] extends: HNode

Represents an HTML 'div' element. The Div class extends HNode and is used as a generic container for content.

Methods

  • Div (list Nodes = null)

    Constructs a new 'div' element.

    • @p Nodes An optional list of child nodes to append to the div.
    • @r this object

class: Br

[569:7] extends: HNode

Represents an HTML 'br' (line break) element. The Br class inserts a line break into the document flow.

Methods

  • Br ()

    Constructs a 'br' (line break) element.

class: HNode

[4:7] extends: object

Base class for HTML elements.

Members

  • obj

Methods

  • HNode (El = null)

    HNode constructor takes optional Element object to set as HNode.obj.

    • @p El is an optional Element object to set.
  • getTagName ()

    Gets the tag name of this element.

    • @r A string with the tag name.
  • blur ()

    Invokes the blur event.

    • @r This object.
  • click ()

    Invokes the click event.

    • @r This object.
  • dispatchEvent (string EventName)

    Dispatches a real DOM event of the given name on this element. Listeners registered via addListener will observe the event. Useful for driving 'input', 'change', and similar events from test harnesses or programmatic handlers.

    • @p EventName is a string with the event name to dispatch.
    • @r This object.
  • focus ()

    Invokes the focus event.

    • @r This object.
  • getByTagName (string TagName)

    Gets a list of child elements with the provided tag name.

    • @p TagName is a string with the tag name to look for.
    • @r A list with the element values.
  • setHtml (string InnerHtml)

    Sets the inner HTML of this element.

    • @p InnerHtml is a string with the inner HTML to set.
    • @r This object.
  • getHtml ()

    Gets the inner HTML of this element.

    • @r A string with the inner HTML.
  • setCss (string CssCode)

    Sets the style CSS text for the element.

    • @p CssCode is a string with the CSS.
    • @r This object.
  • getCss ()

    Gets the style CSS text.

    • @r A string with the CSS text.
  • setStyle (string Property, string Value)

    Sets the inline style property.

    • @p Property is a string with the css property name to set.
    • @p Value is a string with the property value.
    • @r This object.
  • getStyle (string Property)

    Gets the inline style property.

    • @p Property is a string with the css property name to get.
    • @r A string with the style property value.
  • removeStyle (string Property)

    Removes the provided style property.

    • @p Property is a string with the property to remove.
    • @r This object.
  • addClass (string ClassName)

    Adds a CSS class to the current list of them.

    • @p ClassName is a string with the class to add.
    • @r This object.
  • removeClass (string ClassName)

    Removes a CSS class from the current list.

    • @p ClassName is a string with the class to remove.
    • @r This object
  • setAttributes (map Attributes)

    Sets the Element attributes with the provided map. Note that this function clears all the existing attributes that were set previously.

    • @p Attributes is a map with the attributes to set.
  • getAttributes ()

    Gets an Aussom map with the attributes key value pairs.

    • @r An Aussom Map with the attributes.
  • setAttr (string Name, string Value)

    Sets an attribute with the provided name and value.

    • @p Name is the attribute name.
    • @p Value is the attribute value.
    • @r This object.
  • getAttr (string Name)

    Gets the attribute value with the provided name. If not found it returns null. Note: for form-element live values use getValue() instead. The 'value' HTML attribute is the page-source default and does NOT track user input; the 'value' DOM property does. Reading getAttr('value') after a user types will return the stale initial attribute, not the current value.

    • @p Name is a string with the attribute name to get.
    • @r A string with the attribute value or null.
  • setHidden (bool Hidden)

    Sets the hidden flag with the provided value.

    • @p Hidden is a bool with true if hidden and false if not.
    • @r This object
  • getHidden ()

    Gets the hidden flag.

    • @r A bool with true if hidden and false if not.
  • addListener (string EventName, callback OnCall, PassedObj = null)

    Registers an event listner with the provided event name and function to call on that event. The function definition should look something like myEventListener(string EventName, object EventObj). Available Events: https://www.w3schools.com/jsref/dom_obj_event.asp

    • @p EventName is a string with the event name to register.
    • @p OnCall is a function to call on the event.
    • @p PassedObj is an optional argument to pass which will be passed through to the callback when called.
    • @r This object.
  • add (object Child)

    Appends a child node to the element.

    • @p Child is the child node to append.
    • @r This object.
  • getChildren ()

    Gets a list of children nodes.

    • @r A list of child nodes.
  • getFirstChild ()

    Gets the first child node or returns null if none found.

    • @r A child node.
  • getLastChild ()

    Gets the last child node or returns null if none found.

    • @r A child node.
  • removeChild (object ChildNode)

    Removes the provided child node from this object.

    • @p ChildNode is a child node to remove.
    • @r This object.
  • replaceChild (object NewChild, object OldChild)

    Replaces the provided old child with the provided new child node.

    • @p NewChild is the new child node to replace with.
    • @p OldChild is the old child node to replace.
    • @r This object.
  • clear ()

    Clears all the child nodes.

    • @r This object.
  • setId (string id)

    Sets the node id.

    • @p id is a string with the id to set.
    • @r this object.
  • getId ()

    Gets the id value.

    • @r A string with the id value.
  • getHNodeFromExtern (object ExternObj)

    Private function get the HNode from the provided extern object.

    • @p ExternObj is the extern object to get the HNode for.
    • @r A HNode instance with the object.

class: Select

[1651:7] extends: HNode

Represents an HTML 'select' element. The Select class is used to create a dropdown menu for selecting options.

Methods

  • Select (string name = null)

    Constructs a 'select' element with a specified name.

    • @p name A string to set the select element's name.
  • setName (string name)

    Sets the name attribute of the select element.

    • @p name A string for the select element's name.
    • @r This object.
  • getName ()

    Gets the name attribute of the select element.

    • @r A string with the name or an empty string if not set.
  • addOption (string textVal, string value = null)

    Adds an option to the select element.

    • @p textVal The text to display for the option.
    • @p value The value for the option (optional).
    • @r This object.
  • setOptionList (list options)

    Sets the options for the select element from a list.

    • @p options A list of option texts to set.
    • @r This object.
  • setOptionMap (map options)

    Sets the options for the select element from a map.

    • @p options A map with values to be used as option text and value pairs.
    • @r This object.
  • getValue ()

    Must be called after the element is added to the DOM. Gets the selected value of the select element.

    • @r A string with the selected value.
  • setValue (string value)

    Must be called after the element is added to the DOM. Sets the value for the select element.

    • @p value A string with the value to select.
    • @r This object.

class: DateInput

[1884:7] extends: Input

Represents an HTML 'date' input. The DateInput class creates an input for date selection.

Methods

  • DateInput (string name, string value = null)

    Constructs a 'date' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial value.

class: Submit

[2208:7] extends: Input

Represents an HTML 'submit' input. The Submit class creates an input element that submits a form.

Methods

  • Submit (string name, string value = null)

    Constructs a 'submit' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the submit button's value.

class: Tel

[2238:7] extends: Input

Represents an HTML 'tel' input. The Tel class creates an input element for entering a telephone number.

Methods

  • Tel (string name, string value = null)

    Constructs a 'tel' input with the given name and optional value.

    • @p name A string for the input's name.
    • @p value An optional string for the initial telephone number value.
  • setPattern (string pattern)

    Sets the pattern attribute for the telephone number input.

    • @p pattern A string with the regular expression pattern for the input.
    • @r This object.
  • getPattern ()

    Gets the pattern attribute for the telephone number input.

    • @r A string with the pattern or an empty string if not set.