Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IHandler<TRow, TSource, TFiltered, TSorted, TPaged>

This interface exposes methods used to manipulate table data, like filtering, sorting, or paginating. You can implement this interface, or override DefaultHandler's instance's members to customize the behavior of your VueDatatable. Handlers are called in this order: filter, sort, paginate, display.

tutorial

Ajax table (with handler customization)

Type parameters

  • TRow: __type

  • TSource

  • TFiltered

  • TSorted

  • TPaged

Hierarchy

  • IHandler

Implemented by

Index

Properties

displayHandler

displayHandler: TDisplayHandler<TRow, TSource, TFiltered, TSorted, TPaged>

Handler to post-process the paginated data, and determine which data to actually display. It supports promises. Defaults to [[Handler.defaultDisplayHandler]].

filterHandler

filterHandler: TFilterHandler<TRow, TSource, TFiltered>

Filter the provided rows, checking if at least a cell contains one of the specified filters. It supports promises. Defaults to [[Handler.defaultFilterHandler]].

paginateHandler

paginateHandler: TPaginateHandler<TRow, TSorted, TPaged>

Split the rows list to display the requested page index. It supports promises. Defaults to [[Handler.defaultPaginateHandler]].

sortHandler

sortHandler: TSortHandler<TRow, TFiltered, TSorted>

Sort the given rows depending on a specific column & sort order. It suports promises. Defaults to [[Handler.defaultSortHandler]].

Generated using TypeDoc