Skip to content

Improve ScrollView and ListView documentation#11684

Open
LeonMatthes wants to merge 3 commits into
slint-ui:masterfrom
LeonMatthes:scrollview-listview-docs
Open

Improve ScrollView and ListView documentation#11684
LeonMatthes wants to merge 3 commits into
slint-ui:masterfrom
LeonMatthes:scrollview-listview-docs

Conversation

@LeonMatthes
Copy link
Copy Markdown
Member

The documentation now explains the difference between ScrollView and
ListView more clearly and links between each other.

LeonMatthes and others added 3 commits May 11, 2026 14:15
The documentation now explains the difference between ScrollView and
ListView more clearly and links between each other.

In a ListView, elements are only instantiated if they are visible, which guarantees stable performance with a practically unlimited number of items.
For this reason, prefer ListView to display long lists of items.
<Link type="ScrollView"/> is more suitable for a small number of items or for free-form content.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it more suitable for a small number of items?
You can have a ListView with few items it still is more suited as it does the layout for us.
I'd leave that out.

Comment thread .gitignore

MODULE.bazel.lock

# Auto-generated by slint-doc-generator
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is also a docs/astro/.gitignore i'd say it belongs there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants