Function create

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

    Parameters

    • text: string

      The button text

    • Optional onClick: (() => void)

      Callback fired on button click

        • (): void
        • Returns void

    • Optional style: UI.Element.BackBtn.Style

      The Style to apply to the element

    Returns HTMLButtonElement