Methods
-
getSortDirectionForColumn( columnDefinition ) → {'asc'|'desc'|null}
-
Description
Get the sort direction for a specific column.Parameters
Name Type Description columnDefinition
Column The column to check sorting direction for. Returns
Details
-
setSortDirectionForColumn( direction, column ) → {void}
-
Description
Defines the sort direction for a specific column.Parameters
Name Type Description direction
'asc' | 'desc' | null The direction of the sort. column
Column The column to check sorting direction for. Returns
Details
-
processRows() → {Promise.<void>}
-
Description
Using data (or its return value if it is a function), filter, sort, paginate & display rows in the table.Returns
Details
-
setRows( rows ) → {void}
-
Description
Set the displayed rows.Parameters
Name Type Description rows
Array.<Row> The rows to display. Returns
Details
-
setTotalRowCount( value ) → {void}
-
Description
Set the displayed rows count.Parameters
Name Type Description value
number The number of displayed rows. Returns
Details
-
getRowClasses( row ) → {string}
-
Description
Get the classes to add on the rowParameters
Name Type Description row
Row The row to get classes for. Returns
Details
-
initWatchCriterions() → {void}
-
Description
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.Returns
Details