cheatgui
    Preparing search index...

    Class Widget

    A class that represents a user interface widget.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    listeners: { [key: string]: EventCallback[] }
    ref: HTMLElement
    view: View

    Methods

    • Parameters

      • event: string
      • callback: EventCallback

      Returns void

    • Parameters

      • event: string
      • callback: EventCallback

      Returns void

    • Add a click event listener to the widget.

      Parameters

      • f: () => void

        The function to call when the widget is clicked.

      Returns this

    • Set the content of the widget.

      Parameters

      • value: string

        The value to set the content to.

      Returns this

    • Set the text of the widget.

      Parameters

      • value: string

        The value to set the text to.

      Returns this