ag-grid
Version:
Advanced Javascript Datagrid. Supports raw Javascript, AngularJS 1.x, AngularJS 2.0 and Web Components
30 lines (26 loc) • 1.36 kB
HTML
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.min.js"></script>
<!-- you don't need ignore=notused in your code, this is just here to trick the cache -->
<script src="../dist/ag-grid.js?ignore=notused10"></script>
<link rel="stylesheet" type="text/css" href="../dist/ag-grid.css?ignore=notused10">
<link rel="stylesheet" type="text/css" href="../dist/theme-fresh.css?ignore=notused10">
<script src="sortingApi.js"></script>
</head>
<body ng-app="example" ng-controller="exampleCtrl">
<div>
<span style="padding-bottom: 4px; display: inline-block;">
<button ng-click="sortByAthleteAsc()">Athlete Ascending</button>
<button ng-click="sortByAthleteDesc()">Athlete Descending</button>
<button ng-click="sortByCountryThenSport()">Country, then Sport</button>
<button ng-click="sortBySportThenCountry()">Sport, then Country</button>
</span>
<br/>
<span style="padding-bottom: 4px; display: inline-block;">
<button ng-click="clearSort()">Clear Sort</button>
<button ng-click="printSortStateToConsole()">Print Sort State to Console</button>
</span>
</div>
<div ag-grid="gridOptions" class="ag-fresh" style="height: 400px;"></div>
</body>
</html>