function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Leo10Leo10 

How can select multiple rows (Ctrl+mouse click) in SLDS table?

Hi all, 

I need to get some values from SLDS table while clicking on rows both single and multiple (Ctrl+mouse click) mouse clicks. How can I achieve this? 

Thanks,
Pramodh KumarPramodh Kumar
on the on click event, you can pass the IndexVar to the client controller so that you can have Id


You can use something similar to this
<aura:iteration items="{!v.lstItem}" var="item" indexVar="index">
        <input data-selected-Index="{!index}" onchange="{!c.textChange}" type="text" 
               value="{!item.companyName}" class="slds-input slds-m-top--large" />
</aura:iteration>

Let me know if you have any questions
Thanks
Pramodh