Splunk Dev

Hiding Splunk Header Bar in React App

sanjai
Path Finder

Hi Splunkers,

I'm working on a React app for Splunk based on the documentation provided. https://splunkui.splunk.com/Packages/create/CreatingSplunkApps 

I need to hide(may configure) the Splunk header bar when the React app is in use.

 

I’ve come across several community posts suggesting that overriding the default view files might be necessary, but I’m unsure how to configure this within a React app.

I’d appreciate any guidance on how to achieve this.chrome_nHGCHxR02E.png

1 Solution

sanjai
Path Finder

Hi there,

I finally found the solution!

To hide the Splunk bar in the React app, you just need to pass some parameters. In my case, I added them in index.jsx (where I render all my components), and it worked for me:

{
hideChrome: true,
pageTitle: "Splunk React app",
theme,
hideSplunkBar: true
}

View solution in original post

0 Karma

sanjai
Path Finder

Hi there,

I finally found the solution!

To hide the Splunk bar in the React app, you just need to pass some parameters. In my case, I added them in index.jsx (where I render all my components), and it worked for me:

{
hideChrome: true,
pageTitle: "Splunk React app",
theme,
hideSplunkBar: true
}

0 Karma
Get Updates on the Splunk Community!

Announcing the Expansion of the Splunk Academic Alliance Program

The Splunk Community is more than just an online forum — it’s a network of passionate users, administrators, ...

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...