How to recover deleted data c of the table?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
10 views
Hi all. Please help with idea implementation.
I have an array of products and with this array I render the products table.
Each cell has a delete button and restore.
By clicking on delete, the data is "overwritten" and instead of delete button becomes Restore Data. By clicking on it the data is returned and be in same order as it was.

As I thought to do:
Click on deleteto make the field Name Id and visibility: none and state to make the variable isDeleted: trueif true, then render the button Restor'and click on it to return the fields visibility

That is what is at the moment:
https://codesandbox.io/s/j1l0y4rmw9
by | 10 views

1 Answer

0 like 0 dislike
As I thought to do:
Click on deleteto make the field Name Id and visibility: none and state to make the variable isDeleted: trueif true, then render the button Restor'and click on it to return the fields visibility

Well, something similar to represent (instead of games with visibility conditional rendering). However, it is unclear what does the removal? data is here to stay, just not displayed.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
asked May 20, 2019 by Lordao
110,608 questions
257,186 answers
0 comments
35,456 users