Advertisement
Guest User

reporttabledirective

a guest
Jul 30th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. angular.module('ReportTableModule').
  2.  
  3. directive('graphLine', function() {
  4. return {
  5. restrict: 'E',
  6. template: 'okay'
  7. };
  8. }).
  9.  
  10. directive('reportTable', function() {
  11. return {
  12. restrict: 'E',
  13. controller: 'ReportTableController',
  14. controllerAs: 'ctrl',
  15. scope: {
  16. datas :'=myData',
  17. onSave : '&',
  18. editable : "<",
  19. headers : "<",
  20. },
  21. templateUrl: '/static/rfapp/src/report-table/templates/template_table.html',
  22. };
  23. }).
  24.  
  25. directive('reportHeader', function() {
  26. return {
  27. restrict: 'A',
  28. scope: {
  29. headerRows : "=",
  30. milestoneYears : "=",
  31. dataColumns : "=columns"
  32. },
  33. replace: false,
  34. templateUrl: '/static/rfapp/src/report-table/templates/template_table_header.html',
  35. };
  36. }).
  37.  
  38. directive('editableTd', function() {
  39. return {
  40. scope: {
  41. val : "=",
  42. rowsp : "=",
  43. colsp : "=",
  44. },
  45. replace: true,
  46. templateUrl: '/static/rfapp/src/report-table/templates/template_table_editable_td.html'
  47. };
  48. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement