ag-Grid 中的网格单元是否有下拉 select 和输入组合字段?
Is there a dropdown select and input combined field for grid cells in ag-Grid?
我正在寻找 ag-Grid 中的 cellEditor
,它允许下拉菜单 select 与输入相结合,因此用户除了可以从下拉菜单中 select 添加自定义值之外.这是 ag-Grid 目前支持的东西吗?
不幸的是,ag-Grid 不支持此功能,因为它超出了 ag-Grid 的范围。
但是,您也可以创建自定义单元格编辑器组件,正如 documentation. They have made a demo application made using React and ag-grid, with the use of custom cell editor components over here 所指定的那样。至于 dropdown-select 的功能,您可以将特定库(或自己编写)导入自定义单元格编辑器组件,以确保您的单元格编辑器具有该功能。
我正在寻找 ag-Grid 中的 cellEditor
,它允许下拉菜单 select 与输入相结合,因此用户除了可以从下拉菜单中 select 添加自定义值之外.这是 ag-Grid 目前支持的东西吗?
不幸的是,ag-Grid 不支持此功能,因为它超出了 ag-Grid 的范围。
但是,您也可以创建自定义单元格编辑器组件,正如 documentation. They have made a demo application made using React and ag-grid, with the use of custom cell editor components over here 所指定的那样。至于 dropdown-select 的功能,您可以将特定库(或自己编写)导入自定义单元格编辑器组件,以确保您的单元格编辑器具有该功能。