The name of the datatable. It should be unique per page.
Set to true
to defer the initialization of the table after a pager has been attached. It may resolve issues related to double execution of data function.
List of columns definitions displayed by this datatable.
The list of items to display, or a getter function.
Value to match in rows for display filtering.
Maximum number of rows displayed per page.
Class(es) or getter function to get row classes.
Shown only if no rows are displayed
Used to render each row
The current row to display.
The current row index.
The list of columns.
Displayed at the bottom of the table.
The current list of displayed rows.
The current pagination range of the table.
The list of columns.
Emitted when the table has been initialized.
The table name.
Emitted when the page has changed.
The index of the new page.
Emitted when the page count has changed.
The new total number of pages.
Array of rows displayed by the table.
Current page index.
Array of pagers that are linked to this table.
Column used for data sorting.
Direction of the sort. A null value is equivalent to 'asc'.
Total number of rows contained by this data table.
Base CSS class to apply to the <table>
element.
The total number of pages in the associated [[datatable]].
Register the table in the global registry of tables. Additionnaly, it may wait for a pager before starting watch data properties.
Propagate the page-changed
event when the page data is changed.
Get the classes to add on the row
The row to get classes for.
the classes string to set on the row.
Starts the watching of following properties: filter
, perPage
, page
, sortBy
, sortDir
.
When a change is detected, the component runs [[datatable#processRows]].
Because the watch is immediate, [[datatable#processRows]] is run immediately when this method is called.
nothing.
Using data (or its return value if it is a function), filter, sort, paginate & display rows in the table.
a promise resolved once the processing is done, with nothing.
Internal function that retrieve data rows to display.
Promise resolved with total rows count and/or rows to display
Re-emit the current page.
Recalculates the new page count, and emit page-count-changed
with the new count.
Defines the table content & total rows number. You can send none, a single, or both properties. Only non undefined prop will be set.
nothing.
Generated using TypeDoc
The main component of the module, used to display a datatable.