You need to sign in to do that
Don't have an account?
SFDC IN
Accessing the current record from the HTML table in JS file using Lightning Web Component
Hi folks,
I am displaying the records from the custom object test__c using html table in LWC.
I am using this below tag to iterate over the list of records.
<tbody>
<template for:each={testList} for:item="test">
<tr key={test.Id}>
<td>
{data}
</td>
I want to access the current item (for:item="test") in js file.
Like, in js, I am giving
@track record = {};
@track field;
I want (for:item="test") record data to populate in the @track record property.
Can anyone help me with this ?
I am displaying the records from the custom object test__c using html table in LWC.
I am using this below tag to iterate over the list of records.
<tbody>
<template for:each={testList} for:item="test">
<tr key={test.Id}>
<td>
{data}
</td>
I want to access the current item (for:item="test") in js file.
Like, in js, I am giving
@track record = {};
@track field;
I want (for:item="test") record data to populate in the @track record property.
Can anyone help me with this ?
Thanks for responsing.
I have checkbox in one of the columns to select the data and use that data to send the as email. Can you help on this?