Class Box

Just a container where you can put child elements. They will not differ in any way from the ones outside. Can be used as a column in a row.

Hierarchy (view full)

Constructors

Properties

listeners: {
    [key: string]: Function[];
}

Type declaration

  • [key: string]: Function[]
ref: HTMLElement
value: any
view: View

Methods

  • Add a child widget to the container.

    Parameters

    Returns this

  • Parameters

    • event: string
    • callback: Function

    Returns void

  • Add a click event listener to the widget.

    Parameters

    • f: Function

      The function to call when the widget is clicked.

    Returns this

  • Set the text of the widget.

    Parameters

    • value: string

      The value to set the text to.

    Returns this