Splunk Dev

Custom css for app

AleCanzo
Explorer

Hi guys,
I'm trying to customize an app I created. For the dashboards, I placed the CSS file in appserver/static and linked it in the dashboard using stylesheet="my.css".
How does it work for the app's CSS? Where should I put the CSS file? Do I also need to reference it in any .conf file?
Thanks for your attention.

 

Labels (1)
0 Karma

antoniolamonica
Explorer

I have a modified version of the mitre matrx TA, but if understand it corerctly it uses a few things:

Javascript file (.js)
Stylesheet file (.css)
and the Source on a Dashboard.

At the top of your sourceof your Dashbaord write the following: 

<form script="jsFileName.js" stylesheet="cssFileName.css" version"1.1" theme="light">

antoniolamonica_0-1751979258111.png


Now I have to call portions of my .js file in for a table to work accordingly but that may differ from your dashboard.

Here I have to call the components of 'mitrematrix' into my table from the .js

.js

antoniolamonica_1-1751979319062.png
dashboard source:

antoniolamonica_2-1751979380832.png


Something to keep in mind.

---
If this reply helps you, Karma would be appreciated.

Tags (2)
Get Updates on the Splunk Community!

The Payment Operations Wake-Up Call: Why Financial Institutions Can't Afford ...

The same scenario plays out across financial institutions daily. A payment system fails at 11:30 AM on a busy ...

Make Your Case: A Ready-to-Send Letter for Getting Approval to Attend .conf25

Hello Splunkers, Want to attend .conf25 in Boston this year but not sure how to convince your manager? We've ...

Community Spotlight: A Splunk Expert's Journey

In the world of data analytics, some journeys leave a lasting impact not only on the individual but on the ...