SCROLLER - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki

<SCROLLER/> : <BOX/>

The <SCROLLER/> or <SCROLL/> widget creates a directional scrollable area for its children.

Attributes

Name Type Default Description Req
layout string column Direction to be scrollable + children laid out, can be column, col or row. .
scrollbar bool null Shows a scrollbar over the scroller. If true, it will show all the time, if null, it will show only when scrolling and if false its hidden
onscrolltoend string null Triggers an event the first time a user scrolls to the bottom, useful for Terms and Conditions
center bool false The widgets children will be centered. halign and valign override this in their respective directions.
halign string start The horizontal alignment of the children. In all cases this can be 'start', 'top', 'end', 'bottom', 'center'.
valign string start The vertical alignment of the children. In all cases this can be 'start', 'top', 'end', 'bottom', 'center'.

Examples

<FML>
    <BOX width="500" height="500">
        <SCROLL>
            <BOX width="500" height="200" color="random" />
            <BOX width="500" height="200" color="random" />
            <BOX width="500" height="200" color="random" />
            <BOX width="500" height="200" color="random" />
            <BOX width="500" height="200" color="random" />
        </SCROLL>
    </BOX>
</FML>

logo See it in Action

Other Widgets You May Find Useful:

⚠️ **GitHub.com Fallback** ⚠️