通过复选框选择获取选定的行?
Get selected rows by checkbox selection?
在我的专栏 defs 中,我有这个:
{
headerName: 'All',
field: 'all',
headerCheckboxSelection: true,
headerCheckboxSelectionFilteredOnly: true,
checkboxSelection: true,
width: 40,
maxWidth: 40,
suppressFilter: true,
cellStyle: params => {
return { textAlign: 'center' }
}
},
但是当我 select by checkbox 我没有得到 selected rows.Any 建议我该怎么做,让 select by checkbox 与行 select离子?
我正在使用 ag 网格文档中的这个:
https://www.ag-grid.com/javascript-grid-selection/
来自农业网格Grid Events API
rowSelected Row is selected or deselected.
给出的例子:
(rowSelected)="rowSelected()"
在我的专栏 defs 中,我有这个:
{
headerName: 'All',
field: 'all',
headerCheckboxSelection: true,
headerCheckboxSelectionFilteredOnly: true,
checkboxSelection: true,
width: 40,
maxWidth: 40,
suppressFilter: true,
cellStyle: params => {
return { textAlign: 'center' }
}
},
但是当我 select by checkbox 我没有得到 selected rows.Any 建议我该怎么做,让 select by checkbox 与行 select离子?
我正在使用 ag 网格文档中的这个: https://www.ag-grid.com/javascript-grid-selection/
来自农业网格Grid Events API
rowSelected Row is selected or deselected.
给出的例子:
(rowSelected)="rowSelected()"