Advertisement
Guest User

Missing BOM table columns

a guest
Aug 27th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.                         label: '(Mock)'
  3.                         , cell:
  4.                             Backgrid.StringCell.extend({
  5.                                 className: 'verified center'
  6.                                 , render: function() {
  7.                                     var icons = [
  8.                                         '<i style="color: red" class="fa fa-exclamation"></i>'
  9.                                         , '<i style="color: green" class="fa fa-check"></i>'
  10.                                     ];
  11.                                     this.$el.html(icons.random());
  12.                                     return this;
  13.                                 }
  14.                             })
  15.                         , editable: false
  16.                         , sortable: false
  17.                     }
  18.                     , {
  19.                         label: i18n.get('app.modules.versions.bom.license') + ' (Mock)'
  20.                         , cell:
  21.                             Backgrid.StringCell.extend({
  22.                                 className: 'license'
  23.                                 , render: function() {
  24.                                     var licenses = [
  25.                                         'Unknown'
  26.                                         , 'MIT'
  27.                                         , '<a><i class="fa fa-flag warning"></i></a>GPL-2.0'
  28.                                         , '<a><i class="fa fa-flag danger"></i></a>Apache-2.0'
  29.                                     ];
  30.                                     this.$el.html(licenses.random());
  31.                                     return this;
  32.                                 }
  33.                             })
  34.                         , editable: false
  35.                         , sortable: false
  36.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement