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
Surender reddy SalukutiSurender reddy Salukuti 

How we can push custom svg's in lightning Datatable?

HI Every one ,

How we can push Custom SVg s in Lightning Datat table ?

If any one know please help me?

Thank you
Surender Reddy
AbhishekAbhishek (Salesforce Developers) 
Hi Surender,


If you are using data table in LWC, you can insert SVG Resources (https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_svg_in_component) Otherwise you can use SVG in CSS
 
.THIS .slds-icon-utility-success svg { fill: rgb(52,168,83); }lightning component


And also try the suggestion as mentioned in the below blog,

https://sfdcmonkey.com/2017/03/21/use-svg-salesforce-lightning-component/

It might answer your query.

Thanks.