Replace inner Vec
in VecModel
#1043
Unanswered
rdrpenguin04
asked this question in
Ideas
Replies: 1 comment 3 replies
-
I think that’s a good idea and feature to have. I think this also ties with the ability of the model to notify the view that it’s entire content has changed in one go (the “model reset”). Would be great if you can help implement this :) and of course we’re happy to assist. Feel also free to change this discussion into an issue (or let me know if you don’t see that option, then I can also do it). |
Beta Was this translation helpful? Give feedback.
3 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
In my application, fairly often, I don't just need to remove an item from a list and add another one; I need to replace the list with an entirely separate list. I could use
set_<model name>
instead, but then I also have to reset every other function that had theModelRc
cloned... needless to say, this is complicated, and it seems like there should be a better way.It seems like it wouldn't be too hard to have a function to replace the
Vec
in aVecModel
with an entirely newVec
; is there anything that would be blocking this? If not, I could implement it probably.Edit: It would also be useful to read the inner
Vec
for other purposes, like finding an element with a certain ID.Beta Was this translation helpful? Give feedback.
All reactions