Bind for button that switches pagination to the last page.

Hierarchy

  • default
    • LastPageButton

Constructors

  • Bind for button that switches pagination to the last page.

    Parameters

    • Optional style: default

      Styling for button.

    Returns LastPageButton

Accessors

  • get action(): ButtonAction
  • Returns

    Action that is called after the button is pressed.

    Returns ButtonAction

  • get builtComponent(): ButtonBuilder
  • Returns

    Ready button builder.

    Returns ButtonBuilder

  • get data(): Partial<default>
  • Returns

    Button's styling.

    Returns Partial<default>

  • get switch(): ButtonSwitch
  • Returns

    Action that is called to switch button's state.

    Returns ButtonSwitch

Methods

  • Sets action that is called after the button is pressed.

    Returns

    Parameters

    • action: ButtonAction

      Action that is called after the button is pressed.

    Returns LastPageButton

  • Sets buttons data.

    Returns

    Parameters

    • data: default | Partial<default>

      Either an interface for button styling or the class to be built from.

    Returns LastPageButton

  • Sets action that is called to switch button's state.

    Returns

    Parameters

    • switchFunction: ButtonSwitch

      Action that is called to switch button's state.

    Returns LastPageButton

  • Converts button styling to JSON-like object.

    Returns

    JSON-like object.

    Returns default

  • Action that switches pagination to the last page.

    Returns

    Parameters

    • pagination: default

      Pagination.

    Returns Promise<void>

  • Switch that disables button on the last page.

    Returns

    Button's state.

    Parameters

    • pagination: default

      Pagination.

    Returns boolean

Generated using TypeDoc