import "jquery"; import { RelativeSortDefinition } from "../Sorting/RelativeSortDefinition"; import { SortDefinition } from "../Sorting/SortDefinition"; import { TriggerCallbackHandler } from "./TriggerCallbackHandler"; /** * The names and the data-types of the trigger. */ export interface TriggerNameMap { /** * Applies a sort to the table. */ sorton: [ReadonlyArray<(SortDefinition | RelativeSortDefinition)>, TriggerCallbackHandler?]; /** * Resets the sorting. */ sortReset: [TriggerCallbackHandler?]; /** * Adds rows to the table. */ addRows: [JQuery | string, boolean, TriggerCallbackHandler?]; /** * Removes the tablesorter from the table. */ destroy: [boolean, TriggerCallbackHandler?]; /** * Applies the widget to the table. */ applyWidgetId: string; /** * Applies the configured widgets to the table. */ applyWidgets: TriggerCallbackHandler; /** * Refreshes the widgets. */ refreshWidgets: [boolean?, boolean?]; /** * Removes widgets. */ removeWidget: string | readonly string[] | boolean; /** * Updates the data of the table-body. */ update: [boolean | readonly SortDefinition[], TriggerCallbackHandler?]; /** * Updates the data of the table-body. */ updateRows: [boolean | readonly SortDefinition[], TriggerCallbackHandler?]; /** * Updates the cache and optionally adds new `tbody`s. */ updateCache: [TriggerCallbackHandler?, JQuery?]; /** * Updates the cell of the table. */ updateCell: [JQuery, (boolean | readonly SortDefinition[])?, TriggerCallbackHandler?]; /** * Updates the table-headers. */ updateHeaders: TriggerCallbackHandler; /** * Updates the data of the whole table. */ updateAll: [(boolean | readonly SortDefinition[])?, TriggerCallbackHandler?]; /** * Performs a search. */ search: [(readonly string[])?] | boolean; /** * Opens the specified page. */ pageSet: number; /** * Sets the specified size for the page. */ pageSize: number; /** * Opens the specified page with the specified size. */ pageAndSize: [number, number]; /** * Updates the pager and opens the specified page. */ pagerUpdate: number; }