ag-grid
Version:
Advanced Javascript Datagrid. Supports raw Javascript, AngularJS 1.x, AngularJS 2.0 and Web Components
34 lines (32 loc) • 1.3 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="exampleExport.js"></script>
</head>
<body ng-app="example" ng-controller="exampleCtrl">
<div style="padding-bottom: 4px; display: inline-block;">
<label>
File Name:
<input type="text" ng-model="fileName"/>
</label>
<button ng-click="onBtExport()">Export to CSV</button>
<label style="margin-left: 50px;">
<input type="checkbox" ng-model="skipHeader"/>
Skip Header
</label>
<label>
<input type="checkbox" ng-model="skipFooters"/>
Skip Footers
</label>
<label>
<input type="checkbox" ng-model="skipGroups"/>
Skip Groups
</label>
</div>
<div ag-grid="gridOptions" style="height: 450px;" class="ag-fresh"></div>
</body>
</html>