diff --git a/src/renderer/components/virtual-table/index.tsx b/src/renderer/components/virtual-table/index.tsx index 82d9db02..908b27a8 100644 --- a/src/renderer/components/virtual-table/index.tsx +++ b/src/renderer/components/virtual-table/index.tsx @@ -320,6 +320,7 @@ export const getColumnDefs = (columns: PersistedTableColumn[]) => { columnDefs.push({ ...presetColumn, initialWidth: column.width, + ...column.extraProps, }); } } diff --git a/src/renderer/store/settings.store.ts b/src/renderer/store/settings.store.ts index e785f165..a58247c8 100644 --- a/src/renderer/store/settings.store.ts +++ b/src/renderer/store/settings.store.ts @@ -1,5 +1,6 @@ /* eslint-disable prefer-destructuring */ /* eslint-disable @typescript-eslint/no-unused-vars */ +import { ColDef } from '@ag-grid-community/core'; import isElectron from 'is-electron'; import merge from 'lodash/merge'; import create from 'zustand'; @@ -19,6 +20,7 @@ import { export type PersistedTableColumn = { column: TableColumn; + extraProps?: Partial; width: number; };