Adjust initial width
This commit is contained in:
parent
653e52b2df
commit
0f8b1c729c
1 changed files with 1 additions and 6 deletions
|
|
@ -20,16 +20,11 @@ function DataOutputComponent({
|
||||||
const columnDefs = columns.map((col, idx) => ({
|
const columnDefs = columns.map((col, idx) => ({
|
||||||
...col,
|
...col,
|
||||||
resizable: true,
|
resizable: true,
|
||||||
maxWidth: 400,
|
initialWidth: 150,
|
||||||
})) as (ColDef<any> | ColGroupDef<any>)[];
|
})) as (ColDef<any> | ColGroupDef<any>)[];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TableComponent
|
<TableComponent
|
||||||
gridOptions={{
|
|
||||||
autoSizeStrategy: {
|
|
||||||
type: "fitCellContents",
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
key={"dataOutputComponent"}
|
key={"dataOutputComponent"}
|
||||||
overlayNoRowsTemplate="No data available"
|
overlayNoRowsTemplate="No data available"
|
||||||
suppressRowClickSelection={true}
|
suppressRowClickSelection={true}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue