Ag-Grid 添加自定义列到 agColumnsToolPanel

问题描述 投票:0回答:1

我需要在 Ag 网格的列侧菜单中添加一个额外的列 这在 Ag-Grid 中可能吗

更新我的问题

我想出一半的解决方案来创建自定义工具面板并开始绘制列,但我面临三个问题

1-滚动不工作 2 列面板与状态栏重叠 3- 拖放不起作用

https://stackblitz.com/edit/react-ts-yjpquk?file=App.tsx,customStatsToolPanel2.tsx

当前解结果

ag-grid ag-grid-react
1个回答
0
投票

我检查了您提供的链接并能够解决重叠和滚动问题。

const divStyle={
overflowY: 'scroll',
border:'1px solid red',
width:'500px',
float: 'left',
height:'500px',
position:'relative'
};

这个样式可以用在容器div中,可以正常使用

© www.soinside.com 2019 - 2024. All rights reserved.