columns.searchPanes.dtOpts
Define properties of the DataTables being used for an individual pane.
Please note - this property requires the SearchPanes extension for DataTables.
Description
As standard, SearchPanes will overwrite the options for that column defined by the SearchPanes code with the options defined in columns.searchPanes.dtOpts
. As Standard SearchPanes internal DataTable has a dom
property of only t
, meaning that if you are added paging or something visual then you must also modify the dom
property.
This functionality is useful as it allows all of the standard DataTables options and API methods to be available to all of the the panes, either globally or individually.
All of the panes can be altered by using the searchPanes.dtOpts
option.
Type
object
- Description:
The pane can be customised in the same way as a standard DataTable, as it is also an instance of DataTables. The panes properties can be defined within the
columns.searchPanes.dtOpts
object.
Default
- Value:
undefined
The default value for the columns.searchPanes.dtOpts
parameter is undefined
. When this default value is in place the defaults for SearchPanes are applied.
Example
Alter searching and info of the third columns pane:
$(document).ready(function() {
$('#example').DataTable({
dom: 'Plfrtip',
columnDefs: [
{
searchPanes: {
dtOpts: {
info: true
}
},
targets: [2]
}
]
});
});
Related
The following options are directly related and may also be useful in your application development.