Selection Plugin
Selection plugin enables users to select rows or cells. You can then retrieve the selected rows/cells from the plugin store.
Install
Import the selection plugin from gridjs/plugins/selection
:
import { RowSelection } from "gridjs/plugins/selection";
or use a CDN to import the UMD format:
<script src="https://unpkg.com/gridjs/plugins/selection/dist/selection.umd.js"></script>
tip
In UMD, the plugin globally exposed gridjs.plugins.selection
, e.g:
gridjs.plugins.selection.RowSelection