{hero}

rowGroup.startClassName

Since: RowGroup 1.0.0

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

Description

When styling a grouped table, you will likely wish to visually distinguish between the start and end grouping rows (if you are using both), applying different styles to each. This parameter provides the ability to customise the class name that is assigned to the grouping start rows.

Note that this class is assigned in addition to the rowGroup.className property, which can be used to provide common styling to both the start and end rows.

Type

string

Description:

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

Default

  • Value: group-start

Example

Set a custom class name:

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