I tried to make inline editing in Vue Js 3
with Composition API
and I face this problem. When I click edit
, it impacts all rows. How do I make it to only work in one row based on id
?
Here's the result I have so far
The codes are there, but if it needs to be posted here as well, I will edit this question to put it here. Thank you.
There are 2 approaches for this:
togel
state within the component.togel
variable a map in the form: { [id]: true/false }
. Then each togel[id]
would be responsible for its own row state. PlaygroundApproach #1 is a more straight-forward way.