65 lines
2.3 KiB
Raw Normal View History

<!DOCTYPE html>
<!-- xlsx.js (C) 2013-present SheetJS -->
<!-- vim: set ts=2: -->
<html ng-app="app">
<title>SheetJS + AngularJS + ui-grid</title>
<!-- Angular -->
<script src=""></script>
<script src=""></script>
<script src=""></script>
<!-- ui-grid -->
<script src=""></script>
<link rel="stylesheet" href=""/>
<!-- SheetJS js-xlsx library -->
<script src="shim.js"></script>
<script src="xlsx.full.min.js"></script>
<!-- SheetJS Service -->
<script src="SheetJS-angular.js"></script>
.grid1 {
width: 500px;
height: 400px;
<b><a href="">SheetJS + AngularJS demo</a></b>
The core library can be used as-is in AngularJS applications.
The <a href="">Community Edition README</a> details some common use cases.
We also have some <a href="">more public demos</a>
This demo shows:
- SheetJSExportService: a service for exporting data from a ui-grid
- SheetJSImportDirective: a directive providing a file input button for import
<a href="">Sample Spreadsheet</a>
<div ng-controller="MainCtrl">
<input type="file" import-sheet-js="" opts="gridOptions" multiple="false" />
<div id="grid1" ui-grid="gridOptions" ui-grid-selection ui-grid-exporter class="grid"></div>
<script src="app.js"></script>
<script type="text/javascript">
/* eslint no-use-before-define:0 */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36810333-1']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);