Hey everyone,
Is there a Vaadin way to reorder items that are in a ArrayModel Binder?
When modify binder.value, it does apply it but does not make the binder dirty ![]()
Thanks for any help
My solution is:
const node = this.parentBinder.for(this.parentBinder.model.steps);
// modify node.value
node.visited = true
Another way would be creating my own bindable custom component, that handles the change and triggers a change event.
Hi, how do you modify the array? By using setValue from useFormArrayPart, I get “dirty”.
See Bing arrays in Hilla | Vaadin for details.
I use Lit for my project.
I did modify the array like usual in Typescript with push and splice.