Paginator component description

Callable

  • Returns ReactNode

Accessors

isFirstPage: boolean

Returns if the current page is the first page.

const lastPage = this.paginator.isFirstPage;
isLastPage: boolean

Returns if the current page is the last page.

const lastPage = this.paginator.isLastPage;

Events

onPageChange: (args: CustomEvent<number>) => void

Type declaration

Type declaration

onPagingDone: (args: CustomEvent<IgrPageEventArgsDetail>) => void

Type declaration

onPerPageChange: (args: CustomEvent<number>) => void

Type declaration

Methods

  • Goes to the next page of the IgxPaginatorComponent, if the paginator is not already at the last page.

    this.paginator.nextPage();
    

    IgxPaginatorComponent

    Returns void

  • Goes to the desired page index.

    this.paginator.paginate(1);
    

    IgxPaginatorComponent

    Parameters

    • val: number

    Returns void

  • Goes to the previous page of the IgxPaginatorComponent, if the paginator is not already at the first page.

    this.paginator.previousPage();
    

    IgxPaginatorComponent

    Returns void

Properties

overlaySettings: IgrOverlaySettings

Sets custom OverlaySettings.

<igx-paginator [overlaySettings] = "customOverlaySettings"></igx-paginator>
page: number

Gets/Sets the current page of the paginator. The default is 0.

let page = this.paginator.page;
perPage: number

Gets/Sets the number of visible items per page in the paginator. The default is 15.

let itemsPerPage = this.paginator.perPage;

An accessor that sets the resource strings. By default it uses EN resources.

selectOptions: number[]

Sets custom options in the select of the paginator

let options = this.paginator.selectOptions;
totalPages: number

Total pages calculated from totalRecords and perPage

totalRecords: number

Sets the total records.

let totalRecords = this.paginator.totalRecords;