You need to sign in to do that
Don't have an account?
How to add icon from zip static resource in to lightning component ???
<div class="slds" style="margin-top:10px;margin-left:10px;"> <ltng:require styles="/resource/icons/assets/styles/salesforce-lightning-design-system-ltng.css" /> <span class="slds-icon__container slds-icon-standard-account"> <c:svgclass="sldsicon"xlinkHref="/resource/icons/assets/icons/standardsprite/svg/symbols.svg#account" /> <span class="slds-assistive-text">Account Icon</span> </span> </div>
I try to do like this , but still can not show icon .
Please , help me .
Thanks.
To get a URL for your file under static resource, you may use URLFOR method in tag attribute like below:
<ltng:require styles="{!URLFOR($Resource.STATIC_RESOURCE_API_NAME, '/assets/styles/salesforce-lightning-design-system-ltng.css')}" />
I dont know the exact path under your zip file; so please change the 2nd parameter if required.
Thanks.
Thanks you for reply !!!!