scroller

scroller is a layout that creates a scrollable content area.

XML Element

scroller

Java Class

JmixScroller

Overview

scroller basic

Basics

scroller displays overflowing content within a smaller area. It accepts one content component; use a layout such as vbox when several components must scroll together.

<scroller width="25%" height="20em" scrollBarsDirection="VERTICAL">
    <vbox>
        <h4 text="Vertical scrollbar"/>
        <hbox>
            <textField/>
            <textField/>
            <textField/>
            <textField/>
            <textField/>
        </hbox>
    </vbox>
</scroller>

Attributes

Common attributes serve the same purpose for all components. The following attribute is specific to scroller:

Name Description Default

scrollBarsDirection

Controls overflow scrolling: VERTICAL, HORIZONTAL, BOTH, or NONE.

BOTH

Handlers

Name Description

AttachEvent

Fires when the component is attached to the UI.

DetachEvent

Fires when the component is detached from the UI.

Elements

A scroller accepts one component or layout as its scrollable content.