{hero}

rowGroup.className

Since: RowGroup 1.0.0

Set the class name to be used for the grouping rows.
Please note - this property requires the RowGroup extension for DataTables.

Description

When using RowGroup it is important that your end users be able to distinguish between the regular rows in the table and the grouping rows. This is typically done with CSS and this property provides the ability to customise the class that RowGroup assigns to each grouping row.

Note that this class is assigned to both start and end rows.

Type

string

Description:

The class name that will be applied to the grouping rows, allowing them to be styled in the table.

Default

  • Value: group

Example

Set a custom class name:

new DataTable('#myTable', {
	rowGroup: {
		className: 'table-group'
	}
});