cancel
Showing results for 
Search instead for 
Did you mean: 
Community_Admin
Community Team Member
Community Team Member

Question

I am trying to make it a widget button and switch the dashboard once it was clicked. Is there a way to achieve it?

Answer

You can use this script. It uses the standard BloX OpenURL action and will build and style a web page opening button. To try it create a new BloX widget and replace all the Editor pane script with this script.  You can change the target parameter if you want to open in a different window, etc.  _self opens in same window.  This should allow you to navigate to another dashboard by clicking the button.  

You can add additional action blocks to add more buttons with additional URL's if you want to build a navigation page with buttons.

{
"style": "",
"script": "",
"title": "",
"showCarousel": true,
"carouselAnimation": {
    "showButtons": false
},

"actions": [
{
"type": "Action.OpenUrl",
"style": {
"color": "#3794de",
"fontWeight": "default",
"backgroundColor": "#ffff",
"border-style": "solid",
"border-color": "#3794de",
"border-radius": "1px",
"border-width": "1px"
},
"title": "Sisense Labs",
"target": "_self",
"url": "https://www.sisense.com/sisense-labs/"
}
]
}

 

Rate this article:
Version history
Last update:
‎10-19-2021 01:51 AM
Updated by:
Contributors