Splunk Enterprise

Why does this CSS code work when it's put directly in a dashboard but not with an external sheet?

jip31
Motivator

Hello!

The CSS code below works when I put it directly in my dashboard but not with an external sheet.

 

 

<panel depends="$visible$">
<html>
<style>
div[data-test-panel-id^='relative'],
div[data-test-panel-id^='realTime'],
div[data-test-panel-id^='date'],
div[data-test-panel-id^='dateTime'],
div[data-test-column-id^='past'],
div[data-test-panel-id^='advanced'],
div[data-test^='real-time-column']
{
display: none;
}
</style>
</html>
</panel>

 

 

I call the sheet like this:

 

 

<form stylesheet="time.css">

 

 

What is wrong please?

Tags (1)
0 Karma

jip31
Motivator

is anybody can help please?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Where have you stored the external stylesheet?

0 Karma

jip31
Motivator

have you an idea please?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

What path in appserver is the file stored?

If you inspect the page, are there any indications that it can't find the stylesheet?

0 Karma

jip31
Motivator

the path is etc/apps/MyApp/appserver/static/timepicker.css

If I inspect the page, it opens the css stylesheet correctly

0 Karma

jip31
Motivator

in appserver

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...