API References

EzyTables provides the following methods:

  • constructor(opts: EasyTablesOptions): Initializes the EasyTables instance.

  • setSearchDebounced(query: string): Sets the search query and updates the table.

  • sortData(column: string, order: "asc" | "desc"): Sorts the data by the specified column and order.

  • nextPage(): Moves to the next page and updates the table.

  • prevPage(): Moves to the previous page and updates the table.

  • getCurrentPage(): Returns the current page number.

  • getTotalPages(): Returns the total number of pages.

  • getShowingInfo(): Returns information about the displayed items on the current page.

Last updated