rowGroup.emptyDataGroup
Since: RowGroup 1.0.2
Text to show for rows which have null
, undefined
or empty string group data.
Please note - this property requires the RowGroup extension for DataTables.
Description
If the data point (rowGroup.dataSrc
) for a row is null
, undefined
or an empty string, it will still create a group of similar data, but the label shown is defined by this option.
Type
string|null
- Description:
The text that will be shown in the grouping row for the data.
If
null
is given as the value, no grouping row will be shown (since 1.0.3).
Default
- Value:
No group
Examples
Set a custom group message:
new DataTable('#myTable', {
rowGroup: {
emptyDataGroup: 'No categories assigned yet'
}
});
Show no grouping row:
new DataTable('#myTable', {
rowGroup: {
emptyDataGroup: null
}
});