简体   繁体   English

Ag-Grid 为单个行节点启用复选框选择

[英]Ag-Grid enable checkbox selection for a single rowNode

By getting a rowNode by its ID, is there any way I can enable/disable the select checkbox?通过 ID 获取 rowNode,有什么方法可以启用/禁用选择复选框吗?

Not directly, but you can provide a callback function to the grid that takes a RowNode and returns a boolean.不是直接的,但是您可以向采用 RowNode 并返回布尔值的网格提供回调函数。

Provide the function to the grid as the value of the GridOption's 'isRowSelectable' property.将函数作为 GridOption 的“isRowSelectable”属性的值提供给网格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM