Skip to content

Instantly share code, notes, and snippets.

View SSylvain1989's full-sized avatar
👋

Sylvain SSylvain1989

👋
View GitHub Profile
@dcts
dcts / gist:76c74cbecdcae3e3aec15e40ad7c101b
Last active March 6, 2021 08:43
gridjs get Grid instance to change data programatically
import { Grid } from 'gridjs-react';
import { useRef } from "react";
const MyComponent = () => {
const gridRef = useRef();
const changeMyGrid = () => {
const gridjsInstance = gridRef.current.getInstance();
// update col names
gridjsInstance.updateConfig({