MCPcopy Create free account
hub / github.com/HelloCSV/HelloCSV / onCellValueChanged

Function onCellValueChanged

src/sheet/components/SheetDataEditor.tsx:160–173  ·  view source on GitHub ↗
(
    rowIndex: number,
    columnId: string,
    value: ImporterOutputFieldType
  )

Source from the content-addressed store, hash-verified

158 });
159
160 function onCellValueChanged(
161 rowIndex: number,
162 columnId: string,
163 value: ImporterOutputFieldType
164 ) {
165 const rowValue = { ...data.rows[rowIndex] };
166 rowValue[columnId] = value;
167
168 setRowData({
169 sheetId: sheetDefinition.id,
170 value: rowValue,
171 rowIndex,
172 });
173 }
174
175 const tableContainerRef = useRef<HTMLDivElement>(null);
176

Callers 1

SheetDataEditorTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected