Skip to content

Instantly share code, notes, and snippets.

@LukeMurphey
Last active April 14, 2017 03:43
Show Gist options
  • Select an option

  • Save LukeMurphey/8cfd9e691376b0f308cf to your computer and use it in GitHub Desktop.

Select an option

Save LukeMurphey/8cfd9e691376b0f308cf to your computer and use it in GitHub Desktop.
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