Skip to content

Commit aeb3253

Browse files
author
Joe Skeen
committed
docs(expandable): add documentation for row.isExpanded
1 parent ab82b5a commit aeb3253

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/features/expandable/js/expandable.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,20 @@
191191
toggleRowExpansion: function (grid, row) {
192192
// trigger the "before change" event. Can change row height dynamically this way.
193193
grid.api.expandable.raise.rowExpandedBeforeStateChanged(row);
194+
/**
195+
* @ngdoc object
196+
* @name isExpanded
197+
* @propertyOf ui.grid.expandable.api:GridRow
198+
* @description Whether or not the row is currently expanded.
199+
* @example
200+
* <pre>
201+
* $scope.api.expandable.on.rowExpandedStateChanged($scope, function (row) {
202+
* if (row.isExpanded) {
203+
* //...
204+
* }
205+
* });
206+
* </pre>
207+
*/
194208
row.isExpanded = !row.isExpanded;
195209
if (angular.isUndefined(row.expandedRowHeight)){
196210
row.expandedRowHeight = grid.options.expandableRowHeight;

0 commit comments

Comments
 (0)