You need to sign in to do that
Don't have an account?
VAIBHAV SRIVASTAVA 48
Creating tree using SLDS
Hi,
I am just a beginner in lightning and trying to implement tree using SLDS .
I am just pasting the exact code of tree - https://www.lightningdesignsystem.com/components/trees/
in my component but getting following error -
Someone Please guide me how to resolve this error and create a working tree for my requirement.
Thanks and Regards
Vaibhav Srivastava
I am just a beginner in lightning and trying to implement tree using SLDS .
I am just pasting the exact code of tree - https://www.lightningdesignsystem.com/components/trees/
in my component but getting following error -
Someone Please guide me how to resolve this error and create a working tree for my requirement.
Thanks and Regards
Vaibhav Srivastava
You can't use the SVG tag directly with lightning components. You'll need to make a custom component for rendering SVGs. You can copy/paste this code from the Lightning Design System Site to make your own custom SVG component: https://www.lightningdesignsystem.com/resources/lightning-svg-icon-component-helper/
You'll need to use that component instead of the SVG tag.
https://salesforce.stackexchange.com/questions/108710/failed-to-save-undefined-no-component-named-markup-svg-found/163178
create a component as "sv.cmp" with below code after that save your coe
svg.cmp
helper.js
render.js