Posted 14 February 2023, 7:59 pm EST
hello thank you for your supporting.
i have a question about dettaching the “Selector Class” in using flexgrid with react.
normally i’ve been attached the Selector Class to my grid component like codes below:
[flexGrid, setFlexGrid] = useState();
…
initializeGrid(flexGrid) {
setFlexGrid(flexGrid);
new Selector(flexGrid);
…
return(
<>
<FlexGrid initialized={s => initializeGrid(s)} />
…
but i can’t find the way of dettaching the Selector.
i want to dettach the module dynamically through button or context menu.
<button onClick={() => { ((dettachig or removing / attaching the Selector)) }}> …
i think there is some ways to deal with it. like… refreshing rowHeaders or rerender the grid or something…
plz help me