File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
src/features/expandable/js Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 97
97
*
98
98
* @description Public Api for expandable feature
99
99
*/
100
+ /**
101
+ * @ngdoc object
102
+ * @name ui.grid.expandable.api:GridRow
103
+ *
104
+ * @description Additional properties added to GridRow when using the expandable module
105
+ */
100
106
/**
101
107
* @ngdoc object
102
108
* @name ui.grid.expandable.api:GridOptions
191
197
toggleRowExpansion : function ( grid , row ) {
192
198
// trigger the "before change" event. Can change row height dynamically this way.
193
199
grid . api . expandable . raise . rowExpandedBeforeStateChanged ( row ) ;
200
+ /**
201
+ * @ngdoc object
202
+ * @name isExpanded
203
+ * @propertyOf ui.grid.expandable.api:GridRow
204
+ * @description Whether or not the row is currently expanded.
205
+ * @example
206
+ * <pre>
207
+ * $scope.api.expandable.on.rowExpandedStateChanged($scope, function (row) {
208
+ * if (row.isExpanded) {
209
+ * //...
210
+ * }
211
+ * });
212
+ * </pre>
213
+ */
194
214
row . isExpanded = ! row . isExpanded ;
195
215
if ( angular . isUndefined ( row . expandedRowHeight ) ) {
196
216
row . expandedRowHeight = grid . options . expandableRowHeight ;
You can’t perform that action at this time.
0 commit comments