我在哪里可以获得 Angular ui-grid 选定的项目 [英] Where can I get Angular ui-grid selected items
本文介绍了我在哪里可以获得 Angular ui-grid 选定的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
测试 Angular ui-grid (ng-grid v.3.0).不能为我的生活找到选定的行.当用户单击它时,我只想获取行的行甚至行 ID.在这里找到了最高评论,但我认为这已经过时了:从 ng-grid 中获取选择的行?
Testing out Angular ui-grid (ng-grid v.3.0). Can not for the life of me find the selected row. I just want to grab the rows or even row ID of row when a user clicks it. Found the top comment here but I think this is outdated: Getting select rows from ng-grid?
有人知道 gridOptions.selectedItems
在 3.0 中的存储位置吗?
Does anyone know where the gridOptions.selectedItems
is being stored in 3.0?
推荐答案
这是您要找的吗?http://ui-grid.info/docs/#/tutorial/210_selection
- 使用 ui-grid-selection 标签(以及应用中的 ui.grid.selection 模块注册)激活网格选择功能
- 注册 gridApi 并使用 gridApi.selection 访问 getSelectedRows()
这篇关于我在哪里可以获得 Angular ui-grid 选定的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文