You need to sign in to do that
Don't have an account?
Sujata Gusain 6
how can pass the "background-image" value from data
<template> <div class="card lt-purple full mt-24"> <h4>New Customers</h4> <p> Welcome new customers with love. Send them special deals and discounts via email. </p> <template if:true={renderTable} > <div class="table"> <ul class="slds-list_horizontal"> <li for:each={topFiveContacts} for:item="item" key={item.Id}> <div class="user-pic" style="background-image: url('images/icons/icons_dash/user1.png')"></div> <span>{item.FirstName}</span> </li> <li if:true={viewAllContacts}> <div class="user-pic">+{remainingRecordsCount}</div> <span><a href="#">View All</a></span> </li> </ul> </div> </template> </div> </template>
Hi Sujata,
Can you please elaborate your requirement ?
Regards,
Priya Ranjan
This is my required UI.
this is my output.
.HTML
In the place of blow line
style="background-image: url('images/icons/icons_dash/user1.png')"></div>
I want to get dynamic value instead of static.