{hero}

searchPanes.viewCount

Since: SearchPanes 1.3.0

Show the count column in all panes.
Please note - this property requires the SearchPanes extension for DataTables.

Description

As standard, SearchPanes will be displayed with the count column included in the table. However if the value of searchPanes.viewCount is set to false then the count column won't be displayed in any of the panes.

The count column can be hidden for individual panes by the columns.searchPanes.viewCount option.

This option replaces the deprecated searchPanes.hideCount from version 1.2.1+. It was replaced to maintain consistency with searchPanes.viewTotal.

Type

boolean

Description:

By setting the searchPanes.viewCount option to false the count column will be hidden in all of the panes.

Default

  • Value: true

The default value for the searchPanes.viewCount parameter is true, meaning that as standard the count column will be included in the panes.

Example

Hide count for all panes:

new DataTable('#myTable', {
	layout: {
		top1: {
			searchPanes: {
				viewCount: false
			}
		}
	}
});

Related

The following options are directly related and may also be useful in your application development.