You need to sign in to do that
Don't have an account?
Shuhbam Sinha
how to show image in aura lightning datatable salesforce
Hello,
I have a requirement to show Image in aura Lightning Datatabe column and this image field is a formula field which is using static resource to display the images . When I use this formula field in the lightning datatable i get the source url but not the image like below :-
<img src="/resource/SmartActive" alt="Smart Active RX Logo" style="height:40px; width:90px;" border="0"/>
How to show the exact image instead of source url. Please help me in this. I am using aura not lwc here .Thanks in Advance.
I have a requirement to show Image in aura Lightning Datatabe column and this image field is a formula field which is using static resource to display the images . When I use this formula field in the lightning datatable i get the source url but not the image like below :-
<img src="/resource/SmartActive" alt="Smart Active RX Logo" style="height:40px; width:90px;" border="0"/>
How to show the exact image instead of source url. Please help me in this. I am using aura not lwc here .Thanks in Advance.
Refer the below link have solution for similar kind of ask.
https://salesforcecodex.com/salesforce/show-image-in-lightning-web-component-data-table/
If this helps, Please mark it as best answer.
Thanks!!
Thank you for the comment but here i am using aura component not lwc . I mentioned in the question
Please follow below url that's will cover your requirment:-
https://viewonreview.com/display-icon-in-lightning-datatable/
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
I have gone through to this post but it talks about showing the utility icon that too standard one but i need to show images that are coming from one formula field. Could you please help me on this,
Please follow below url:-
https://pritamshekhawat.wordpress.com/2020/05/09/hyperlink-formula-fields-in-lightningdatatable/
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh