Blox widget On click
Hi team,
Good day! need your help. :)
I am trying to make it a button and switch the dashboard once it was clicked.
here my script inside the Blox widget:
widget.on('click', function(widget,args) {
var d = 'dashboardURL';
window.top.location = d;
});
Thank you in advance!
Larry
-
Larry,
Try 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.
Hope this helps, Jim
{"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",}]}
Please sign in to leave a comment.
Comments
2 comments