Dashboards & Visualizations

HTML: Make panel clickable for hyperlinking

jedatt01
Builder

Can someone tell me how in HTML I can make an entire panel clickable so when clicked it takes you to a specified hyperlink?

Tags (2)

jedatt01
Builder

Figured it out myself.....just had to reach way back to web development days. Will answer to share what I did.

On the div tag that defines the dashboard panel you want to be clickable....add an onclick

<div class="dashboard-panel clearfix" onclick="myhref('http://mysplunkserver:8000/en-US/app/next_level_dashboard');">

Then create a javascript handler for the onclick

<script type="text/javascript">
        function myhref(web){
        window.location.href = web;}
</script>
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...