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.

enum ScrollBarPolicy default: the first enum value

ScrollBarPolicy

This enum describes the scrollbar visibility

  • as-needed: Scrollbar will be visible only when needed
  • always-off: Scrollbar never shown
  • always-on: Scrollbar always visible

The policy for showing the horizontal scroll bar.

enum ScrollBarPolicy default: the first enum value

ScrollBarPolicy

This enum describes the scrollbar visibility

  • as-needed: Scrollbar will be visible only when needed
  • always-off: Scrollbar never shown
  • always-on: Scrollbar always visible

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.


© 2025 SixtyFPS GmbH