Guest User

Untitled

a guest
Nov 20th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. $scope.myData = [{icon:"",Domain: "Moroni", project:"" },
  2. {icon:"",Domain: "Tiancum", project:"" },
  3. {icon:"",Domain: "Jacob", project:"" },
  4. {icon:"",Domain: "Nephi", project:"" },
  5. {icon:"",Domain: "Enos", project: ""}];
  6. $scope.gridOptions = {
  7. data: 'myData',
  8. columnDefs: [{
  9. field: 'icon',
  10. displayName: '',
  11. cellTemplate: '<div><i class="fa fa-plus-square" aria-hidden="true" ng-click="foo(row.entity.Domain)" ng-bind="row.getProperty(col.field)">></i></div>'
  12. },{
  13. field: 'Domain',
  14. displayName: 'Domain',
  15. cellTemplate: '<div ng-click="foo(row.getProperty(col.field))" ng-bind="row.getProperty(col.field)"></div>'
  16. }, {
  17. field: 'project',
  18. displayName: 'project'
  19. }
  20.  
  21. ]
  22. };
Add Comment
Please, Sign In to add comment