Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
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,
1 answer
  1. Aug 16, 2017, 10:02 PM
    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

     
0/9000