mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 07:04:34 +00:00
Added scrolled callback to ListView and ScrollView (#5964)
This commit is contained in:
parent
f5d950cf0c
commit
039f33eaae
9 changed files with 88 additions and 66 deletions
|
@ -9,6 +9,11 @@ Elements are only instantiated if they are visible
|
|||
|
||||
Same as [`ScrollView`](#scrollview)
|
||||
|
||||
|
||||
### Callbacks
|
||||
|
||||
Same as [`ScrollView`](#scrollview)
|
||||
|
||||
### Example
|
||||
|
||||
```slint
|
||||
|
|
|
@ -18,6 +18,10 @@ using for loops may be added in the future and is tracked in issue #407.
|
|||
- **`viewport-x`** and **`viewport-y`** (_in-out_ _length_): The `x` and `y` properties of the viewport. Usually these are negative
|
||||
- **`visible-width`** and **`visible-height`** (_out_ _length_): The size of the visible area of the ScrollView (not including the scrollbar)
|
||||
|
||||
### Callbacks
|
||||
|
||||
- **`scrolled()`**: Invoked when `viewport-x` or `viewport-y` is changed by a user action (dragging, scrolling).
|
||||
|
||||
### Example
|
||||
|
||||
```slint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue