File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/features/expandable/js Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 191
191
toggleRowExpansion : function ( grid , row ) {
192
192
// trigger the "before change" event. Can change row height dynamically this way.
193
193
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
+ */
194
208
row . isExpanded = ! row . isExpanded ;
195
209
if ( angular . isUndefined ( row . expandedRowHeight ) ) {
196
210
row . expandedRowHeight = grid . options . expandableRowHeight ;
You can’t perform that action at this time.
0 commit comments