Add a simple scroll to top button to your Mendix page. This widget extends the dojo libraries Mendix uses by adding dojox specific libraries. In this way it is not needed to add any jQuery for instance.
Typical usage scenario
When pages have become too large involving quite some scrolling
Features and limitations
- Add a scroll to top button;
- Adjust timing / smoothness of scrolling;
- Style button;
- Add scrolling functionality to other buttons via CSS class
Drag the widget into your page and place it preferably below the page content in the Modeler to ensure it is loaded later than the actual content.
The most important part is choosing the correct CSS class to target to scroll to. This can depend on the application. Find the correct class to target by chosing Inspect Element in your browser. If no such element is found the widget will give an alert.