Sha256: afc0f90df0c7ed4db84b2552d7ee65ccbf0db186c5037ee774ca5dd9736b9ff8

Contents?: true

Size: 508 Bytes

Versions: 11

Compression:

Stored size: 508 Bytes

Contents

define(

function() {
  'use strict';

  var iconSets = {
    fa: {},
    glyphicon: { users: 'user' }
  }

  function Icons(iconSet) {
    var set = iconSets[iconSet];
    this.icons = (set) ? set : {};
    this.set = iconSet;
  };

  Icons.prototype.get = function(name) {
    var icon = this.icons[name];
    return (icon) ? icon : name;
  };

  Icons.prototype.htmlClass = function(name) {
    console.log(this, name);
    return this.set + ' ' + this.set + '-' + this.get(name);
  }

  return Icons
});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
admin_it-1.3.8 client/src/js/icons.js
admin_it-1.3.7 client/src/js/icons.js
admin_it-1.3.6 client/src/js/icons.js
admin_it-1.3.5 client/src/js/icons.js
admin_it-1.3.4 client/src/js/icons.js
admin_it-1.3.3 client/src/js/icons.js
admin_it-1.3.2 client/src/js/icons.js
admin_it-1.3.1 client/src/js/icons.js
admin_it-1.3.0 client/src/js/icons.js
admin_it-1.2.8 client/src/js/icons.js
admin_it-1.2.7 client/src/js/icons.js