Elements

ScrollView

A scrollable container element that allows content to overflow and be scrolled. Extends Group functionality with scrolling capabilities.

Constructor

new ScrollView(
    new Label("Item 1"),
    new Label("Item 2"),
    new Label("Item 3")
    // ... many more items
);
new ScrollView(); // Empty scroll view

Properties

ScrollView inherits all properties from Group and BaseElement.

Methods

ScrollView inherits all methods from Group and BaseElement, including:

  • Child management (BindChildren)
  • Layout methods (Flex, JustifyContent, AlignItems)
  • Built-in vertical and horizontal scrolling
  • Scroll bars appear automatically when content overflows