Class View

A class that stores interface elements and displays them on a web page.

Constructors

Properties

children: GUIElement[]
ref: HTMLElement

Methods

  • The append function appends a widget to a parent element and updates the list of children.

    Parameters

    Returns this

  • Destroy the view and all its children.

    Returns void

  • Recursively returns a JSON representation of all values in the view.

    Returns object

  • Recursively loads the values of all child elements from the object.

    Parameters

    • config: object

    Returns void

  • Use an existing HTML element for the view.

    Parameters

    • target: HTMLElement

    Returns this

  • Set the contents of the view.

    Parameters

    • value: string

    Returns this

  • Set the contents of the view.

    Parameters

    • value: string

    Returns this