<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to customize the UI of an app? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173455#M10763</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;How to extend view --- :
     If you are using advanced xml to create your views. Then you can customize your views using application.js, application.css
     sample application.js
switch (Splunk.util.getCurrentView()) {
    case "view_name":
        if (Splunk.Module.ModuleName) {
                                Splunk.Module.ModuleName = $.klass(Splunk.Module.ModuleName, {
                                          methodOfThatModule :function(){
                                                       // Your custom implementation
                                            }
}

});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How to replace modules :&lt;BR /&gt;
                1. You can have a customized copy of those modules inside your app and flush and replace the original file inside splunk on deploying your app or restart your app by executing a shell scrip with the help of inputs.conf&lt;BR /&gt;
                2. Create and use custom modules by extending the original one&lt;/P&gt;

&lt;P&gt;How to extend a module with a custom logic : &lt;BR /&gt;
                            Same available in appliation.js&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2015 09:14:30 GMT</pubDate>
    <dc:creator>paramagurukarth</dc:creator>
    <dc:date>2015-08-18T09:14:30Z</dc:date>
    <item>
      <title>How to customize the UI of an app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173451#M10759</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've created a sample application using Splunk Web.&lt;/P&gt;

&lt;P&gt;I would like to customize a top level navigation bar (AccountBar) "Admonistrator | Messages | ...".&lt;BR /&gt;
My investigations led me to the Master.html, but it is in the core of Splunk and I'd link to do this on the App level.&lt;/P&gt;

&lt;P&gt;Can you please clarify the proper way to do this? And it would be helpful to have an overall vision of the App architecture:&lt;BR /&gt;
 - How to extend views.&lt;BR /&gt;
 - How to replace modules.&lt;BR /&gt;
 - How to extend a module with a custom logic.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 17:29:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173451#M10759</guid>
      <dc:creator>deniswow</dc:creator>
      <dc:date>2015-08-13T17:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the UI of an app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173452#M10760</link>
      <description>&lt;P&gt;May I recommend &lt;A href="http://dev.splunk.com/view/dev-guide/SP-CAAAE2R"&gt;this&lt;/A&gt;, an excellent source of information around building apps in Splunk.&lt;/P&gt;

&lt;P&gt;Also, you will find a ton of information &lt;A href="http://dev.splunk.com/getstarted"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2015 20:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173452#M10760</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2015-08-13T20:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the UI of an app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173453#M10761</link>
      <description>&lt;P&gt;I got the idea, but it not unclear how to expend Searches page and remove some things in the AccountBar.&lt;/P&gt;

&lt;P&gt;The solution I see:&lt;BR /&gt;
 - Copy searches.html into loca/data/ui/views folder and change it.&lt;/P&gt;

&lt;P&gt;Am I right?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2015 10:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173453#M10761</guid>
      <dc:creator>deniswow</dc:creator>
      <dc:date>2015-08-14T10:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the UI of an app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173454#M10762</link>
      <description>&lt;P&gt;I'm able to replace a whole "search" view using "local" folder, but still could not find proper way to customize AccountBar.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2015 16:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173454#M10762</guid>
      <dc:creator>deniswow</dc:creator>
      <dc:date>2015-08-14T16:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the UI of an app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173455#M10763</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;How to extend view --- :
     If you are using advanced xml to create your views. Then you can customize your views using application.js, application.css
     sample application.js
switch (Splunk.util.getCurrentView()) {
    case "view_name":
        if (Splunk.Module.ModuleName) {
                                Splunk.Module.ModuleName = $.klass(Splunk.Module.ModuleName, {
                                          methodOfThatModule :function(){
                                                       // Your custom implementation
                                            }
}

});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How to replace modules :&lt;BR /&gt;
                1. You can have a customized copy of those modules inside your app and flush and replace the original file inside splunk on deploying your app or restart your app by executing a shell scrip with the help of inputs.conf&lt;BR /&gt;
                2. Create and use custom modules by extending the original one&lt;/P&gt;

&lt;P&gt;How to extend a module with a custom logic : &lt;BR /&gt;
                            Same available in appliation.js&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 09:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173455#M10763</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2015-08-18T09:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the UI of an app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173456#M10764</link>
      <description>&lt;P&gt;There is a Master.js under exposed/js/views/shared/appbar that seems like a layout for AccountBar.&lt;BR /&gt;
But changing JS / HTML files does not affect AccountBar. Am I missing anything?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 09:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173456#M10764</guid>
      <dc:creator>deniswow</dc:creator>
      <dc:date>2015-08-18T09:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the UI of an app?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173457#M10765</link>
      <description>&lt;P&gt;If I'd like to customize default Search View of a "Search &amp;amp; Reporting" App, adding custom XML view overrides default VIew. But I'd like to keep all the functionality and using default Search view does not load "application.js" and all the stuff as Splunk.util.getCurrentView(), $(document).bind("PageReady", someFunction); is not working.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 09:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-customize-the-UI-of-an-app/m-p/173457#M10765</guid>
      <dc:creator>deniswow</dc:creator>
      <dc:date>2015-08-26T09:05:28Z</dc:date>
    </item>
  </channel>
</rss>

