Class for storing and modifying button data.

Hierarchy

Constructors

Properties

_action: ButtonAction
_disableWhen: ButtonDisableWhen

Accessors

  • get action(): null | ButtonAction
  • Represents an action that should be completed after the button is pressed.

    Either a number of a page or a function that determines number of a page.

    Returns null | ButtonAction

  • get disableWhen(): null | ButtonDisableWhen
  • Represents a condition of disabling button.

    Either a number of a page or a function that determines number of a page.

    Returns null | ButtonDisableWhen

Methods

  • Sets an action that should be completed when the button is pressed.

    Returns

    Button data.

    Parameters

    • action: ButtonAction

      Either a number of a page or a function that determines number of a page.

    Returns ButtonData

Generated using TypeDoc