Closed Milan-Koladiya closed 1 year ago
Goal:- my goal is to prevent cells from copy
I have tried CellComponentProps and passed copied: false but still it copies. did I use it in the wrong way? please check the below code.
<Spreadsheet CellComponentProps={(cell) => ({ copied: false, ...cell, })} onChange={(updatedData) => setUpdatedGridData({ ...updatedGridData, income: updatedData })} data={gridData.income} columnLabels={columnHeaders} rowLabels={incomeGridTitle} />
Goal:- my goal is to prevent cells from copy
I have tried CellComponentProps and passed copied: false but still it copies. did I use it in the wrong way? please check the below code.
<Spreadsheet CellComponentProps={(cell) => ({ copied: false, ...cell, })} onChange={(updatedData) => setUpdatedGridData({ ...updatedGridData, income: updatedData })} data={gridData.income} columnLabels={columnHeaders} rowLabels={incomeGridTitle} />