add fitGridWidth autoSize Strategy
This commit is contained in:
parent
23f0da7cbb
commit
481870f7bd
1 changed files with 2 additions and 1 deletions
|
|
@ -20,11 +20,12 @@ function DataOutputComponent({
|
||||||
const columnDefs = columns.map((col, idx) => ({
|
const columnDefs = columns.map((col, idx) => ({
|
||||||
...col,
|
...col,
|
||||||
resizable: true,
|
resizable: true,
|
||||||
initialWidth: 150,
|
|
||||||
})) as (ColDef<any> | ColGroupDef<any>)[];
|
})) as (ColDef<any> | ColGroupDef<any>)[];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TableComponent
|
<TableComponent
|
||||||
|
autoSizeStrategy={{type: 'fitGridWidth',
|
||||||
|
defaultMinWidth: 100,}}
|
||||||
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