searchPanes.dataLength
Since: SearchPanes SearchPanes 1.0.0
Make use of ellipsis for a certain length of entry.
Please note - this property requires the SearchPanes extension for DataTables.
Description
This is useful as it prevents the searchPanes cells becoming mishapen and overpopulated when the table contains long strings.
Types
integer
- Description:
Truncate options after
searchPanes.dataLength
characters and replace with ellipses ('...').
Default
- Value:
30
The default value for the searchPanes.dataLength
option is 30
, after 30 characters the cell will cut off the end and append with '...'.
Examples
Setting data length to a smaller value::
$('#example').DataTable( {
searchPanes: {
dataLength: 15
},
dom: 'Pfrtip'
});
Never truncate data:
$('#example').DataTable( {
searchPanes: {
dataLength: false
},
dom: 'Pfrtip'
});