This topic is locked

Creating TABS in a Dashboard Panel

5/24/2025 4:47:53 AM
PHPRunner General questions
K
KeithS author

I have many charts I woud like to show to a user in a dashboard. I can currently insert these charts into a panel in a dashboard. But they are too many and I want to organize them. Is there a way to use tabs in a dashboard?

K
KeithS author 5/31/2025

Many Thankls for this great help. Worked very good. I added to the JS array of items to load into the tab a tabtitle item so I could control the tab title. Minor thing.

One of the items I wanted to include in the tab was adding a CODE Snippet, which is merely a php "print" of the contents of a HTML article body, rich text fetched from the DB. So the idea was to have tab1=an article, tab2=a chart, tab3=another charet,tab4=a table grid list.

The only thing I could not do was the Tab1 with my HTML text in it. But I did work around it by putyting my HTML above the snippet that does the TAB create/setup.

You can see it here: https://smurfsearch.electionwatch.info/fec_gonedata_dashboard.php

Again, very appreciative of your providing a working method to solve this. I'd like to carry that further if I new more about the ID constructs of the resulting page for a Snippet. That seems the key to JS copying the Element into the Tab.

C
Chris Whitehead 5/31/2025

Good job and well done, it's a great tutorial and gave me ideas for other pages as well.