How to handle selectedRows in lightning:dataTable?
onrowselection can be used to handle selectedRows in lightning:dataTable.The keyField should be mapped to a unique identifier attribute from the payload. Sample Code: Component: <aura:component implements="force:appHostable" controller="AccountListController"> <aura:attribute type="Account[]" name="acctList"/> ....