18 lines
618 B
JavaScript
18 lines
618 B
JavaScript
define(['js/views/baseview'],
|
|
function(BaseView) {
|
|
return BaseView.extend({
|
|
tagName: 'li',
|
|
initialize: function() {
|
|
BaseView.prototype.initialize.call(this);
|
|
this.template = this.loadTemplate('add-xblock-component-button');
|
|
this.$el.html(
|
|
this.template({
|
|
type: this.model.type,
|
|
templates: this.model.templates,
|
|
display_name: this.model.display_name
|
|
})
|
|
);
|
|
}
|
|
});
|
|
}); // end define();
|