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

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow