cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Is there any way to show/hide blox elements using action buttons

Wojtek
9 - Travel Pro
9 - Travel Pro

I am looking to use blox to list metrics and metric results.

I would like to be able to show/hide details of listed individual items with click of action button or any other intuitive way.

2 REPLIES 2

Sijo1995
9 - Travel Pro
9 - Travel Pro

Hi @Wojtek ,

Please use this script

 

{
    "title": "show",
    "titleStyle": [
        {
            "display": "none"
        }
    ],
    "showCarousel": false,
    "actions": [
        {
            "type": "Textblock",
            "title": "PPR",
            "horizontalAlignment": "right",
            "spacing": "default",
            "style": {
                "color": "#454545",
                "border": "3px solid #454545",
                "fontWeight": "600",
                "backgroundColor": "#FFCD00",
                "border-style": "solid",
                "border-color": "",
                "border-radius": "3px",
                "fontSize": "15px",
                "spacing": "none",
                "height": "85%",
                "cursor": "no-drop",
                "margin": "20px 0px 0px 0px"
            }
        },
        {
            "type": "JTD",
            "title": "PDF",
            "horizontalAlignment": "right",
            "spacing": "default",
            "style": {
                "color": "black",
                "fontWeight": "",
                "backgroundColor": "#FFF8DD",
                "border": "1px solid #aeaeae",
                "border-radius": "4px",
                "fontSize": "0.7vw",
                "spacing": "none",
                "height": "85%",
                "enabled": "disabled",
                "margin": "20px 0px -5px 0px"
            },
            "data": {
                "dashboardId": "",
                "args": {
                    "displayDashboardsPane": true,
                    "displayFilterPane": true,
                    "mergeTargetDashboardFilters": true,
                    "resetDashFilterAfterJTD": true,
                    "drilledDashboardDisplayType": 3,
                    "excludeFilterDims": [
                        "[Table name.Columnname]"
                    ]
                }
            }
        }
    ]
}

 

Thanks

Sijo

Wojtek
9 - Travel Pro
9 - Travel Pro

Hi Sijo,

Thanks for suggestion. I was thinking along same lines. I will test it once I find some time and update here.

Thanks,

Wojtek