You need to sign in to do that
Don't have an account?
Madhusudan Singh 15
How to use getSelectedRows of lightning datatable
Hi All,
I want to delete selected rows from datatable on a button click. How can I do that? Can anyone share a sample working code.
Regards
Madhusudan Singh
I want to delete selected rows from datatable on a button click. How can I do that? Can anyone share a sample working code.
Regards
Madhusudan Singh
https://rajvakati.com/2018/02/18/usage-of-lightningdatatable/
What I used was,
In the markup side of the component: Note de aura:id attribute
In the controller side you can do something like:
So, your find the lightning:datatable by its aura:id and the you can use the method