Bind for button that switches pagination to the first page.

Hierarchy

  • default
    • FirstPageButton

Constructors

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

    Parameters

    • Optional style: default

      Styling for button.

    Returns FirstPageButton

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 FirstPageButton

  • Sets buttons data.

    Returns

    Parameters

    • data: default | Partial<default>

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

    Returns FirstPageButton

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

    Returns

    Parameters

    • switchFunction: ButtonSwitch

      Action that is called to switch button's state.

    Returns FirstPageButton

  • Converts button styling to JSON-like object.

    Returns

    JSON-like object.

    Returns default

  • Action that switches pagination to the first page.

    Returns

    Parameters

    • pagination: default

      Pagination.

    Returns Promise<void>

  • Switch that disables button on the first page.

    Returns

    Button's state.

    Parameters

    • pagination: default

      Pagination.

    Returns boolean

Generated using TypeDoc