/**
 * Creates a toolbar button that is represented by
 * an icon, e.g. add button.
 *
 * Copyright 2015 Ethan Smith
 */

 var Backbone = require('backbone'),
     Marionette = require('backbone.marionette');

var ToolbarItem = Marionette.ItemView.extend({
   template: '<div><a><i class="fa <%- icon %>"></i></a></div>',
   model: new Backbone.Model({
      'icon': 'fa-plus'
   })
});

module.exports = ToolbarItem;

/**
 * Creates a toolbar button that is represented by
 * an icon, e.g. add button.
 *
 * Copyright 2015 Ethan Smith
 */

 var Backbone = require('backbone'),
     Marionette = require('backbone.marionette');

var ToolbarItem = Marionette.ItemView.extend({
   template: '<div><a><i class="fa <%- icon %>"></i></a></div>',
   className: 'toolbarItem',
   model: new Backbone.Model({
      'icon': 'fa-plus'
   })
});

module.exports = ToolbarItem;

Add class to ToolbarItem