Answers for "html5 data attribute javascript +salesforce"

1

data-userid attribute lightning

<a href="javascript:void(0);" onclick="{!c.selected}" 
		data-record="{!sr.Id}"/>  
_______________________________________________________________
In Controller.js

selected: function(cmp,event,helper)
{
   var recId = event.currentTarget.dataset.record;
}
Posted by: Guest on April-24-2020

Code answers related to "html5 data attribute javascript +salesforce"

Browse Popular Code Answers by Language