Add extraProps param on column defs

This commit is contained in:
jeffvli 2023-05-20 18:41:24 -07:00
parent 3df2915f5f
commit 897af4661b
2 changed files with 3 additions and 0 deletions

View File

@ -320,6 +320,7 @@ export const getColumnDefs = (columns: PersistedTableColumn[]) => {
columnDefs.push({
...presetColumn,
initialWidth: column.width,
...column.extraProps,
});
}
}

View File

@ -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<ColDef>;
width: number;
};