[英]ag-Grid Disable Horizontal FillHandle
Is it possible to disable the javascript Ag-Grid fill handle horizontally?是否可以水平禁用 javascript Ag-Grid 填充手柄?
I see it is possible to get the fill direction from utilising the fillOperation function, but there is nothing in the docs about disabling a horizontal fill.我看到可以通过使用 fillOperation function 来获取填充方向,但是文档中没有关于禁用水平填充的内容。
In the examples on the Fill Handle info page on below link you can fill the name across all columns which would be incorrect.在下面链接的“填充句柄信息”页面上的示例中,您可以在所有不正确的列中填写名称。
Is it best then to use the fillOperation function and just not copy anything unless the direction is up/down?那么最好使用fillOperation function,除非方向是向上/向下,否则不要复制任何内容?
https://www.ag-grid.com/javascript-grid-range-selection-fill-handle/ https://www.ag-grid.com/javascript-grid-range-selection-fill-handle/
As of Version 24.0.0, you can use the fillHandleDirection
property in gridOptions and set it to y
.从版本 24.0.0 开始,您可以使用 gridOptions 中的
fillHandleDirection
属性并将其设置为y
。
You can do "x", "y" or "xy" and also there is a function to change it on the fly您可以执行“x”、“y”或“xy”,还有一个 function 可以即时更改它
gridOptions.api.setFillHandleDirection(direction);
This is all available in the ag grid docs这一切都可以在 ag 网格文档中找到
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.