searchPanes.viewTotal
Update the count column when searching to show visible count.
Please note - this property requires the SearchPanes extension for DataTables.
Description
This option is an alias to searchPanes.viewTotal
, which should be preferred when using DataTables 2+. It can be used to configure SearchPanes regardless of how the panes are inserted into the document (layout
or searchPanes
).
Please refer to the documentation for searchPanes.viewTotal
for full details of this option.
Type
boolean
- Description:
By setting the
searchPanes.viewTotal
to true, when a search is applied to the table, the message in the count columns of the panes will change to represent the currently visible entries.
Default
- Value:
false
The default value for the searchPanes.viewTotal
parameter is false
.
Example
Enable viewTotal:
new DataTable('#myTable', {
layout: {
top1: 'viewTotal'
},
searchPanes: {
viewTotal: true
}
});
Related
The following options are directly related and may also be useful in your application development.