Last active
April 14, 2017 03:43
-
-
Save LukeMurphey/8cfd9e691376b0f308cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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