Skip to content

Add/remove item from array in slint? #2363

Answered by tronical
AllenDang asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AllenDang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants