Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextButton

A text button with a text Label.

Hierarchy

  • TextButton

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Optional textButton

textButton: { onClick?: OpenLink | Action; text: string }

Type declaration

Methods

setAction

  • Sets an action that executes on the server when the object is clicked.

    Parameters

    • action: Action

      The action to take when this element is clicked.

    Returns TextButton

    • This object, for chaining.

setOpenLink

  • Sets a URL to be opened when the object is clicked. Use this method when the URL is already known and only needs to be opened.

    Parameters

    • openLink: OpenLink

      An {@link @OpenLink | OpenLink} object for describing the URL to open.

    Returns TextButton

    • This object, for chaining.

setText

  • Sets the text that displays on the button.

    Parameters

    • text: string

      The text that appears on the button.

    Returns TextButton

    • This object, for chaining.

Generated using TypeDoc