Skip to main content

Row selection

tip

Install the gridjs-selection plugin if you haven't already. Follow the installation manual.

Example

In order to install the Selection plugin, add a new column to the columns list and instantiate the plugin:

Live Editor
Result
Loading...
note

In the example above, the 3rd cell (which is row.cell(2).data) has been selected as the row identifier which is the "Email" field. Note that the first cell is the checkbox column.

Selected rows

The selection plugin uses a Redux architecture and that means each selection instance has its own unique Store which keeps the list of selected rows.

Live Editor
Result
Loading...
tip

Follow the Advanced Plugin article to learn more about writing Grid.js plugins!