Forum Discussion

gwolfe's avatar
05-11-2022

Use the Accordion plugin on a BloX widget

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

4 Replies

Replies have been turned off for this discussion
  • 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.

  • 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?

  • 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's avatar
    drydendi
    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: