Class Utilities

Hierarchy

  • Utilities

Constructors

Methods

  • Converts the enum align to a string.

    Parameters

    Returns string

  • Removes all child elements of the given element.

    Parameters

    • element: HTMLElement

    Returns void

  • Parameters

    • parent: Widget
    • element: HTMLElement
    • key: string

    Returns Widget

  • Returns the code of the key that was pressed or released.

    Parameters

    • event: KeyboardEvent

    Returns Key

  • Returns the keyboard modifier flag.

    Parameters

    • event: MouseEvent | KeyboardEvent

    Returns Modifier

  • Returns the mouse button.

    Parameters

    • event: MouseEvent

    Returns MouseButton

  • Returns the position of the given element relative to its sibling elements.

    Parameters

    • element: HTMLElement

    Returns number

  • Insert the element after the given target.

    Parameters

    • element: HTMLElement
    • target: HTMLElement

    Returns void

  • Converts the given string to a enum Alignment.

    Parameters

    • str: string

    Returns Alignment

Generated using TypeDoc