Function useArrayPaginator

A utility function for pagination and filtering an array of data rows.

  • Type Parameters

    • FilterData extends {} = any

      The type of the filter data object.

    • RowData extends IRowData = any

      The type of the row data object.

    Parameters

    • rowsHandler: ListHandler<FilterData, RowData, any>

      The function that retrieves the data rows.

    • options: IArrayPaginatorParams<FilterData, RowData> = {}

      The optional configuration options.

    Returns ListHandler<FilterData, RowData, any>

    • The list handler function.