Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added custom gridTemplate support and added scope to ngAggregate #970

Closed
wants to merge 2 commits into from
Closed

Conversation

radiant-alex
Copy link

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>

@roblarsen
Copy link
Contributor

Can you give us an example of what you're trying to do here with a plunker?

@c0bra
Copy link
Contributor

c0bra commented Apr 22, 2014

No response; closing.

@c0bra c0bra closed this Apr 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants