Salesforce Fact #386 | Move rows between datatables in LWC
Suppose we have a use case in LWC where we have two datatables. Now, whenever a row is selected from datatable1 it should get added to datatable2 and at the same time should get removed from datatable1.
We can implement this by using some JS logic on onrowselection event.
Attached are the screenshots.
Code Snippets:
Output:
Comments
Post a Comment