Row Selection: Allows users to select multiple rows in the grid.
Column Selection: Enables users to select entire columns.
Automatic Theme Support: The plugin adapts to light or dark themes based on user settings.
Flexible and Extensible: This plugin demonstrates the potential for creating custom plugins, encouraging developers to expand the grid’s functionality further.
To enable the RowSelectPlugin in your RevoGrid setup, you have two options:
Using rowSelect Prop in Columns
Using columnType with RowSelectColumnType
Option 1: Using rowSelect Prop in Columns
In this approach, the rowSelect property in the column definition enables checkbox-based row selection for the specific column.
1
grid.columns = [
2
{
3
prop:'_check',
4
rowSelect:true,
5
},
6
...
7
];
8
// Define plugin
9
grid.plugins = [RowSelectPlugin];
Option 2: Using columnType with RowSelectColumnType
Alternatively, you can use a custom columnType and the RowSelectColumnType to enable row selection.