{hero}

columns.searchPanes.orderable

Since: SearchPanes 1.0.0

Hide the ordering buttons in the pane of a specific column.
Please note - this property requires the SearchPanes extension for DataTables.

Description

As standard, SearchPanes will be displayed with the ordering buttons included in the interface. However if the value of columns.searchPanes.orderable is set to false then the ordering buttons will no longer be displayed.

The ordering buttons can be hidden for all of the panes by making use of searchPanes.orderable.

Type

boolean

Description:

By setting the columns.searchPanes.orderable option to false the ordering buttons will be hidden in the pane for that specific column.

Default

  • Value: true

The default value for the columns.searchPanes.orderable parameter is true, meaning that as standard the ordering buttons will be included in the pane.

Example

Hide ordering buttons for the 5th columns pane:

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	columnDefs: [
		{
			searchPanes: {
				orderable: false
			},
			targets: [4]
		}
	]
});

Related

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