Function create

  • Create the pre-built UI element for the text button

    Parameters

    • text: string

      The button text

    • onClick: (() => void)

      The callback fired on button press

        • (): void
        • Returns void

    • Optional style: UI.Element.TextBtn.Style

      The Style to apply to the element

    Returns HTMLButtonElement