Skip to content

ScrollView

import { ScrollView } from "material.slint";
export component Example inherits Window {
width: 300px;
height: 200px;
background: transparent;
ScrollView {
width: 280px;
height: 180px;
}
}
slint

A ScrollView provides scrolling functionality for content that exceeds the available space, with optional scroll bars.

bool default: true

Whether scrolling is enabled.

bool (in-out) default: false

Whether the scroll view has focus.

ScrollBarPolicy default: <???>

The policy for showing the horizontal scroll bar.

ScrollBarPolicy default: <???>

The policy for showing the vertical scroll bar.

length (in-out) default: 0px

The total height of the scrollable content.

length (in-out) default: 0px

The total width of the scrollable content.

length (in-out) default: 0px

The horizontal scroll position.

length (in-out) default: 0px

The vertical scroll position.

length (out) default: 0px

The height of the visible area.

length (out) default: 0px

The width of the visible area.

Invoked when the content is scrolled.

ScrollView {
scrolled() => {
debug("Content scrolled");
}
}
slint

© 2025 SixtyFPS GmbH