-
I'm creating a tag bar, user could add and remove tags, is it possible to add/remove item from array directly in slint lang? Here is the widget I'm trying to implement.
|
Beta Was this translation helpful? Give feedback.
Answered by
tronical
Mar 10, 2023
Replies: 1 comment
-
It's not possible to add/remove rows from a model from within .Slint files. Perhaps this could be implemented if we had a syntax that preserved the vector backing. Meanwhile what is typically done is to create a VecModel in Rust, keep a clone there, and then append/remove/insert on that one. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AllenDang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not possible to add/remove rows from a model from within .Slint files. Perhaps this could be implemented if we had a syntax that preserved the vector backing. Meanwhile what is typically done is to create a VecModel in Rust, keep a clone there, and then append/remove/insert on that one.