Knowledge Base Article

Custom Action To Scroll-Down To A Specific Widget

Question

Would it be possible to add a scroll to a widget location action? So I have a top panel that has an action of: "navigate to Actions widget"?

Answer

You'll need to create a custom action and include something like: 

var elmnt = document.getElementById("content"); //The widget to scroll to
elmnt.scrollIntoView();

https://www.w3schools.com/jsref/met_element_scrollintoview.asp

 

Published 10-19-2021
No CommentsBe the first to comment