The pagination action creators.

interface PaginationActionCreators {
    nextPage(
        payload?: SlotIdPayload,
    ): { payload: undefined | SlotIdPayload; type: string };
    previousPage(
        payload?: SlotIdPayload,
    ): { payload: undefined | SlotIdPayload; type: string };
    registerRecommendationsSlotPagination(
        payload: Required<SlotIdPayload>,
    ): { payload: Required<SlotIdPayload>; type: string };
    selectPage(
        payload: SelectPagePayload,
    ): { payload: SelectPagePayload; type: string };
    setPageSize(
        payload: SetPageSizePayload,
    ): { payload: SetPageSizePayload; type: string };
}

Methods

  • Selects the next page.

    Parameters

    • Optionalpayload: SlotIdPayload

      The action creator payload.

    Returns { payload: undefined | SlotIdPayload; type: string }

    A dispatchable action.

  • Selects the previous page.

    Parameters

    • Optionalpayload: SlotIdPayload

      The action creator payload.

    Returns { payload: undefined | SlotIdPayload; type: string }

    A dispatchable action.

  • Registers pagination for a recommendations slot.

    Parameters

    • payload: Required<SlotIdPayload>

      The action creator payload.

    Returns { payload: Required<SlotIdPayload>; type: string }

    A dispatchable action.

  • Selects a page.

    Parameters

    Returns { payload: SelectPagePayload; type: string }

    A dispatchable action.

  • Sets the page size.

    Parameters

    Returns { payload: SetPageSizePayload; type: string }

    A dispatchable action.