Built Custom Widget "Draggable List" #8420
Unanswered
Leonie-Theobald
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For my GUI (especially for the phone version), I wanted to have a user-friendly way to allow reordering of elements in a list by dragging an list element to its desired line and drop it. I built a custom widget for this. Maybe somebody find this useful as well. I tried to write the code in such way that it requires minimal changes to adapt the style and list content.
If you want to check it out: DraggableList on SlintPad
It would be really cool to have a built-in widget for this at some point in future. E.g. similar to
VerticalLayout{}
you put all your elements inside but for thisDraggableVerticalLayout{}
the GUI user can drag the elements. But I am not sure if this is a usecase for others as well.Cheers, Leonie
Rust Callback Handling
Beta Was this translation helpful? Give feedback.
All reactions