The Scroll End Master component is here to offer a bit more control over the On Scroll Ending event in your OutSystems applications. It aims to provide a reliable alternative to the default List Widget behavior.
Gentle Enhancement: Allows for a bit more precision in managing scroll endpoint events.
Reliability Boost: Aims to contribute to a smoother user experience by addressing potential inaccuracies in default List Widget behavior.
Drag and drop the Scroll End Master widget onto your screen or block.
Input Configuration:
Target Element ID (Mandatory):
Scroll Element ID (Optional):
div
screen-container"
Offset Pixels (Optional):
While we hope the Scroll End Master adds a helpful touch to your project, please be aware that you still need to create your logic for the On Scroll Ending Event when fetching your data if that's what you want to use it for.
This is a simple example where the code will analyze the "ListToAnalyze" everytime it scrolls down and will call the event when the bottom of the element reaches the bottom of the window.
Important Note: When not giving a value to ScrollElementId, the code will listen the scroll event on the main scroll container that container the class "screen-container", which is the container that holds all the information of the screen and has the scrollbar to navigate through the screen.
This is a more specific case where the code will analyze the "ListToAnalyze" by checking if the bottom part reaches or intersects with the bottom of the "ScrollContainer" that has the scroll feature.
In this case, a scroll event listener will be added to that "ScrollContainer" instead of the container with the class "Screen-container".
Is Data Fetched (Mandatory):