Added custom gridTemplate support and added scope to ngAggregate #970
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Below is a sample custom template that I used for a grid:
<div ng-grid-footer></div>
<div class="ngTopPanel" ng-class="{'ui-widget-header': gridOptions.jqueryUITheme}" ng-style="topPanelStyle()">
<div class="ngGroupPanel" ng-show="showGroupPanel()" ng-style="groupPanelStyle()">
<div class="ngGroupPanelDescription" ng-show="configGroups.length==0">{{i18n.ngGroupPanelDescription}}</div>
<ul ng-show="configGroups.length" class="ngGroupList">
<li class="ngGroupItem" ng-repeat="group in configGroups">
<span class="ngGroupElement">
<span class="ngGroupName">{{group.displayName}}<span ng-click="removeGroup($index)" class="ngRemoveGroup">x</span></span>
<span ng-hide="$last" class="ngGroupArrow"></span>
</span>
</li>
</ul>
</div>
<div class="ngHeaderContainer" ng-style="headerStyle()">
<div class="ngHeaderScroller" ng-style="headerScrollerStyle()" ng-include="gridId + 'headerRowTemplate.html'"></div>
</div>
<div ng-grid-menu></div>
</div>
<div class="ngViewport" unselectable="on" ng-viewport ng-class="{'ui-widget-content': gridOptions.jqueryUITheme}" style="max-height: 600px" ng-style="viewportStyle()">
<div class="ngCanvas">
<div ng-style="rowStyle(row)" ng-repeat="row in renderedRows" ng-click="row.toggleSelected($event)" ng-class="row.alternatingRowClass()" ng-row></div>
</div>
</div>