Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
define([
"underscore",
"backbone",
"splunkjs/mvc",
"jquery",
"splunkjs/mvc/simplesplunkview",
'text!../app/CHANGEME/js/templates/CHANGEMEView.html', // CHANGE_THIS: Modify the path to use a template
"css!../app/CHANGEME/css/CHANGEMEView.css" // CHANGE_THIS: Modify the path to use a stylesheet
], function(
_,
Backbone,
mvc,
$,
SimpleSplunkView,
Template
){
return SimpleSplunkView.extend({
className: "CHANGEMEView", // CHANGE_THIS
defaults: {
},
initialize: function() {
this.options = _.extend({}, this.defaults, this.options);
//this.some_option = this.options.some_option;
},
render: function () {
this.$el.html(_.template(Template, {
//'some_option' : some_option
}));
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.