https://i.sstatic.net/CF1Xo.pngHello, I'm currently facing an issue with my requirements. I'm attempting to display two tables.
Data for Table One:
TableOne =[
{
"Id": 1,
"Name": "ONLINE",
"Status": false,
"Track": false,
},
{
"Id": 2,
"Name": "ONLINE",
"Status": false,
"Track": true,
},
{
"Id": 3,
"Name": "DEAL",
"Status": true,
"Track": false,
},
{
"Id": 4,
"Name": "OFFLINE",
"Status": false,
"Track": false,
},
]
Data for Table Two:
Tab =[
{
"Id": 1,
"Name": "ONLINE",
"Status": false,
"Track": false,
},
{
"Id": 2,
"Name": "ONLINE",
"Status": true,
"Track": false,
},
{
"Id": 3,
"Name": "DEAL",
"Status": true,
"Track": false,
},
]
Table one:
Id Name Status Track
1 ONLINE false
2 ONLINE true
3 DEAL false
4 OFFLINE false
Table two:
Id Name Status Track
1 ONLINE false
2 ONLINE false
3 DEAL false
The issue I am encountering is: How can I retrieve values from selected table rows using checkbox selection? And how can I transfer the selected values from table one to table two by clicking a button? Also
- Selecting rows from table one and moving them to table two
- If table one has the name "Online" and table two has the name "Offline" with the same id number, will it overwrite?
- Upon clicking the button, how can I access the values of the selected row(s)?
Below is the link to my StackBlitz project.