Is it possible to use Backbone.Router from the Web Framework to update URL's based on selections made to a particular view?
{% block js %}
{# JavaScript goes here #}
<script>
// Load the required libraries
var deps = [
"splunkjs/ready!",
"backbone"
];
require(deps, function(mvc, Backbone) {
var Router = Backbone.Router.extend({
routes: {
},
tokens: function(token) {
}
});
var router = new Router();
)};
{% block js %}
{# JavaScript goes here #}
<script>
// Load the required libraries
var deps = [
"splunkjs/ready!",
"backbone"
];
require(deps, function(mvc, Backbone) {
var Router = Backbone.Router.extend({
routes: {
},
tokens: function(token) {
}
});
var router = new Router();
)};
It is certainly possible, and the regular examples should work. I don't have an example handy right now, but if I find one I'll update my answer.
I was looking for an example...