Skip to content

Commit 7274632

Browse files
committed
Merge pull request #5112 from nkovacic/expandable-docs
Added expandableRowScope ngDocs
2 parents c61f680 + e10c5c9 commit 7274632

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/features/expandable/js/expandable.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,18 @@
416416
gridUtil.getTemplate($scope.grid.options.expandableRowTemplate).then(
417417
function (template) {
418418
if ($scope.grid.options.expandableRowScope) {
419+
/**
420+
* @ngdoc object
421+
* @name expandableRowScope
422+
* @propertyOf ui.grid.expandable.api:GridOptions
423+
* @description Variables of object expandableScope will be available in the scope of the expanded subgrid
424+
* @example
425+
* <pre>
426+
* $scope.gridOptions = {
427+
* expandableRowScope: expandableScope
428+
* }
429+
* </pre>
430+
*/
419431
var expandableRowScope = $scope.grid.options.expandableRowScope;
420432
for (var property in expandableRowScope) {
421433
if (expandableRowScope.hasOwnProperty(property)) {

0 commit comments

Comments
 (0)