Extra cells for glide-data-grid
npm install glide-data-grid-cells-forkAdditional cells and features for Glide Data Grid





Current cells
- Star (Rating) Cell
- Sparklines
- Article
- Dropdown
- Range
- User profile
- Tags
Step 1: Add the extra cells to your grid.
``tsx
import { useExtraCells } from "glide-data-grid-fork-cells";
const Grid = () => {
const { customRenderers } = useExtraCells();
return
};
`
Step 2: Use the cells in your getCellContent callback
`ts
import type { StarCell } from "glide-data-grid-fork-cells";
const getCellContent = React.useCallback(() => {
const starCell: StarCell = {
kind: GridCellKind.Custom,
allowOverlay: true,
copyData: "4 out of 5",
data: {
kind: "star-cell",
label: "Test",
rating: 4,
},
};
return starCell;
}, []);
`
The ArticleCell uses @toast-ui/editor to provide its editor. To make sure it works correctly your project will need to import the css file it depends on.
```
import "@toast-ui/editor/dist/toastui-editor.css";