Splunk Dev

Use Backbone.Router from Web Framework

cjpomer
Explorer

Is it possible to use Backbone.Router from the Web Framework to update URL's based on selections made to a particular view?

0 Karma
1 Solution

cjpomer
Explorer
{% 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();
                   )};

View solution in original post

0 Karma

cjpomer
Explorer
{% 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();
                   )};
0 Karma

ineeman
Splunk Employee
Splunk Employee

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.

0 Karma

cjpomer
Explorer

I was looking for an example...

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...