Skip to content

federicop91/angular-pivot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-pivottable

Angular wrapper for Nicolas Kruchten's Pivot Table.

Kruchten's

Usage :

  • If you use bower, just bower install angular-pivottable. If not, download files from the github repo.
  • Download also it's dependencies https://github.com/nicolaskruchten/pivottable, jquery & jquery-ui
  • Add jquery.js, jquery-ui.js, angular-pivot.js, pivot.css, and pivot.js to your code:
<link href="pivot.css" rel="stylesheet" type="text/css" />
<script src="jquery.js"></script>
<script src="jquery-ui.js"></script>
<script src="pivot.js"></script>
<script src="angular-pivot.js"></script>
  • Add the angular-pivottable module as a dependency to your application module:
angular.module('MyApp', ['angular-pivottable']);
  • Add a ng-pivot attribute to any element with the name of a $scope variable containing the array of data to display on the Pivot Table.
<div ng-pivot="data"></div>
$scope.data = [{ name : "Erick", age : "23" }, { name : "Diego", age : "28" }];

Directive options (TO DO):

ng-pivot-options options object with properties:

  • rows: array of strings to preload rows
  • cols: array of strings to preload cols
  • renderers: array of renderers

About

Angular wrapper for Nicolas Kruchten's Pivot Table

Resources

License

Stars

Watchers

Forks

Packages

No packages published