我在哪里可以得到角UI格选定项目 [英] Where can I get Angular ui-grid selected items
问题描述
测试出角UI网(NG-电网V.3.0)。不能为我的生活找到选定行。我只想抢行,甚至一排排的ID当用户点击它。发现这里的顶部发表评论,但我认为这是过时的:<一href=\"http://stackoverflow.com/questions/16875283/getting-select-rows-from-ng-grid?answertab=active#tab-top\">Getting从NG-网格行?
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?
推荐答案
请问这是什么您正在寻找?
<一href=\"http://ui-grid.info/docs/#/tutorial/210_selection\">http://ui-grid.info/docs/#/tutorial/210_selection
Is this what your are looking for ? http://ui-grid.info/docs/#/tutorial/210_selection
- 在激活您的应用程序与UI格选择标签格选择功能(和ui.grid.selection模块注册
- 注册gridApi并使用gridApi.selection访问getSelectedRows()
这篇关于我在哪里可以得到角UI格选定项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!