PHP Classes

File: vendors/gentelella/vendors/jquery.easy-pie-chart/src/angular.directive.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/jquery.easy-pie-chart/src/angular.directive.js   Download  
File: vendors/gentelella/vendors/jquery.easy-pie-chart/src/angular.directive.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 940 bytes
 

Contents

Class file image Download
(function (angular) { 'use strict'; return angular.module('easypiechart', []) .directive('easypiechart', [function() { return { restrict: 'A', require: '?ngModel', scope: { percent: '=', options: '=' }, link: function (scope, element, attrs) { scope.percent = scope.percent || 0; /** * default easy pie chart options * @type {Object} */ var options = { barColor: '#ef1e25', trackColor: '#f9f9f9', scaleColor: '#dfe0e0', scaleLength: 5, lineCap: 'round', lineWidth: 3, size: 110, rotate: 0, animate: { duration: 1000, enabled: true } }; scope.options = angular.extend(options, scope.options); var pieChart = new EasyPieChart(element[0], options); scope.$watch('percent', function(newVal, oldVal) { pieChart.update(newVal); }); } }; }]); })(angular);