Forum Discussion
harikm007
09-01-2022Data Warehouse
Hi tbwoodt ,
Try this:
Create a blox with below script (replace widgetid with your widgetID):
{
"style": "",
"script": "",
"title": "",
"showCarousel": true,
"body": [
{
"spacing": "medium",
"type": "Container",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "ScrollToWidget",
"title": "Scroll To Widget",
"data": {
"widgetid": "6298e884a45683002ea8234"
}
}
]
}
]
}
],
"actions": []
}
Create an Action 'ScrollToWidget' in Blox with below script:
var widgetId = payload.data.widgetid;
document.querySelector(`widget[widgetid="${widgetId}"]`).scrollIntoView({
behavior: 'smooth'
});
(Here is how to create an action in Blox: https://documentation.sisense.com/docs/creating-custom-actions)
-Hari
- tbwoodt09-07-2022Data Storage
Thanks for your solution! I actually figured out how to do it a different way, I used the standard jump to dashboard script and added the widget id in the path for ex "https:xxxxx/dashboard/xxxxx/widgets/xxxxxx".