Free and Open source Web Builder Framework. Next generation tool for building templates without coding
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
401 B

define(['backbone'],
function (Backbone) {
/**
* @class CommandButtonView
* */
return Backbone.View.extend({
tagName: 'a',
initialize: function(o){
this.config = o.config || {};
this.className = this.config.stylePrefix + 'btn ' + this.model.get('class');
},
render: function() {
this.$el.attr('class', _.result( this, 'className' ) );
return this;
}
});
});