mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
ui-grid: added uiGrid.expandable tests
This commit is contained in:
parent
1dfd976b08
commit
8376bf5b17
@ -130,3 +130,14 @@ anotherGridInstance.scrollTo(rowEntityToScrollTo, columnDefToScrollTo);
|
||||
|
||||
var selectedRowEntities: Array<IMyEntity> = gridApi.selection.getSelectedRows();
|
||||
var selectedGridRows: Array<uiGrid.IGridRow> = gridApi.selection.getSelectedGridRows();
|
||||
|
||||
gridApi.expandable.on.rowExpandedStateChanged(null, (row) => {
|
||||
if (row.isExpanded) {
|
||||
console.log('expanded', row.entity);
|
||||
} else {
|
||||
gridApi.expandable.toggleRowExpansion(row.entity);
|
||||
}
|
||||
});
|
||||
gridApi.expandable.expandAllRows();
|
||||
gridApi.expandable.collapseAllRows();
|
||||
gridApi.expandable.toggleAllRows();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user