angular-js-xlsx

WebJar for angular-js-xlsx

License

License

MIT
Categories

Categories

JavaScript Languages Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-js-xlsx
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

angular-js-xlsx
WebJar for angular-js-xlsx
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/brexis/angular-js-xlsx

Download angular-js-xlsx

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-js-xlsx/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-js-xlsx</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-js-xlsx/
implementation 'org.webjars.bower:angular-js-xlsx:0.0.1'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-js-xlsx/
implementation ("org.webjars.bower:angular-js-xlsx:0.0.1")
'org.webjars.bower:angular-js-xlsx:jar:0.0.1'
<dependency org="org.webjars.bower" name="angular-js-xlsx" rev="0.0.1">
  <artifact name="angular-js-xlsx" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-js-xlsx', version='0.0.1')
)
libraryDependencies += "org.webjars.bower" % "angular-js-xlsx" % "0.0.1"
[org.webjars.bower/angular-js-xlsx "0.0.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : js-xlsx jar [0.8.0,0.9)
org.webjars.bower : angular jar [1.4.8,1.5)

Project Modules

There are no modules declared in this project.

angular-js-xlsx

An angular directive to read XLSX / XLSM / XLSB / XLS / SpreadsheetML (Excel Spreadsheet) https://github.com/SheetJS/js-xlsx

Installation

  # Bower
  bower install angular-js-xlsx
  # NPM
  npm install angular-js-xlsx

Use

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Angular Js XLS</title>
</head>
<body ng-app="MyApp">
  <div ng-controller="myController">
    <js-xls onread="read" onerror="error"></js-xls>
  </div>

  <script type="text/javascript" src="angular.min.js"></script>
  <script type="text/javascript" src="xlsx.core.min.js"></script>
  <script type="text/javascript" src="angular-js-xlsx.js"></script>
  <script type="text/javascript">
    angular.module('MyApp', ['angular-js-xlsx'])
    .controller('myController', function($scope) {
      $scope.read = function (workbook) {
        /* DO SOMETHING WITH workbook HERE */
        console.log(workbook);
      }

      $scope.error = function (e) {
        /* DO SOMETHING WHEN ERROR IS THROWN */
        console.log(e);
      }
    });
  </script>
</body>
</html>

Versions

Version
0.0.1