Created
June 4, 2014 16:58
-
-
Save fassetar/9b482624390d3cecc52b to your computer and use it in GitHub Desktop.
Font-Awesome Ng-grid Sorting
This file contains hidden or 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
<div class="ngHeaderSortColumn {{col.headerClass}}" ng-style="{'cursor': col.cursor}" ng-class="{ 'ngSorted': !noSortVisible }"> | |
<div ng-click="col.sort($event); sortOrder = !sortOrder;" ng-class="'colt' + col.index" class="ngHeaderText"> | |
<div ng-show="(!col.showSortButtonDown() && !col.showSortButtonUp())" class="fa fa-fw fa-sort"></div> | |
<div class="fa fa-fw fa-sort-desc" ng-show="col.showSortButtonDown()"></div> | |
<div class="fa fa-fw fa-sort-asc" ng-show="col.showSortButtonUp()"></div> | |
{{col.displayName}} | |
</div> | |
</div> | |
<div ng-show="col.resizable" class="ngHeaderGrip" ng-click="col.gripClick($event)" ng-mousedown="col.gripOnMouseDown($event)"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment