cancel
Showing results for 
Search instead for 
Did you mean: 

Use the Accordion plugin on a BloX widget

gwolfe
10 - ETL
10 - ETL

Hi, I can't figure out how to use the Accordion plugin on a BloX widget. Any help is appreciated, thanks. 

4 REPLIES 4

david-h
9 - Travel Pro
9 - Travel Pro

Hi,

I know it is not the same, but you can already use the Jump To Dashboard as a popup, or a "lightbox".

Best, David.

gwolfe
10 - ETL
10 - ETL

Thanks @david-h , This would work for me, but I can't figure out how to make the widget itself clickable rather than using a button. Can you help?

david-h
9 - Travel Pro
9 - Travel Pro

Hi @gwolfe , sorry for late answer but schedule is toough those days.

If you have not find the answer, here is a block of code that should helps you. The key is to add a block called selectActions following an items block. In this example, the block is added after an image, but it can work also directly on text.

{
    "style": "",
    "script": "",
    "title": "",
    "showCarousel": true,
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "Image",
                    "url": "/plugins/BloX/blox-images/image.png",
                    "altText": "image descriptions",
                    "size": "medium"
                }
            ],
            "selectAction": {
                "type": "JTD",
                "title": "Jump To Dashboard",
                "data": {
                    "dashboardId": "",
                    "panelsToInclude": [
                        {
                            "panel": "Category",
                            "value": "{value:Category}"
                        }
                    ],
                    "args": {
                        "displayDashboardsPane": false,
                        "displayFilterPane": true
                    }
                }
            }
        }
    ],
    "actions": []
}

Hope this will help you. This opens a lots of possibilites !

Enjoy !

Best, David.

drydendi
7 - Data Storage
7 - Data Storage

Hi @gwolfe , I am sure you have resolved this by now but I wanted to share how we achieved this functionality.  We used the same accordion widget script used in an indicator widget then added the following to our Blox widget: 

drydendi_2-1668785832555.png

drydendi_0-1668785769953.png