-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(expandable): Enhance the expandable grid feature.
* Add ability to expand rows via double click. * Removed the extra loader. * Added $scope.row.element * Add event on expanded render complete.
- Loading branch information
1 parent
c0303b5
commit ec13255
Showing
10 changed files
with
126 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
<div | ||
class="ui-grid-row-header-cell ui-grid-expandable-buttons-cell"> | ||
<div | ||
class="ui-grid-cell-contents"> | ||
<i ng-if="!(row.groupHeader==true || row.entity.subGridOptions.disableRowExpandable)" | ||
ng-class="{ 'ui-grid-icon-plus-squared' : !row.isExpanded, 'ui-grid-icon-minus-squared' : row.isExpanded }" | ||
ng-click="grid.api.expandable.toggleRowExpansion(row.entity)"> | ||
<div class="ui-grid-row-header-cell ui-grid-expandable-buttons-cell"> | ||
<div class="ui-grid-cell-contents"> | ||
<i class="clickable" | ||
ng-if="!(row.groupHeader==true || row.entity.subGridOptions.disableRowExpandable)" | ||
ng-class="{ 'ui-grid-icon-plus-squared' : !row.isExpanded, 'ui-grid-icon-minus-squared' : row.isExpanded }" | ||
ng-click="grid.api.expandable.toggleRowExpansion(row.entity, $event)"> | ||
</i> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ | |
}); | ||
}, | ||
post: function($scope, $elm, $attrs, controllers) { | ||
|
||
$scope.row.element = $elm; | ||
} | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters