data macros (able to change columns) + duplicate column macro

This commit is contained in:
Jan Prochazka
2020-11-01 12:09:40 +01:00
parent d5b8433c17
commit ab2fb3bf97
4 changed files with 119 additions and 8 deletions

View File

@@ -30,10 +30,11 @@ export default function FreeTableGridCore(props) {
macroPreview ? selectedCells : null,
]
);
const display = React.useMemo(() => new FreeTableGridDisplay(modelState.value, config, setConfig, cache, setCache), [
const display = React.useMemo(() => new FreeTableGridDisplay(grider.model || modelState.value, config, setConfig, cache, setCache), [
modelState.value,
config,
cache,
grider,
]);
const handleSelectionChanged = React.useCallback(