May 2019
Intermediate to advanced
546 pages
12h 41m
English
Click in the left navigation and click on Helper. This is the same screen that was shown in the renderer part. Copy and paste the following code into this helper part of your component (again, between the curly brackets):
renderIcon: function(component) { var prefix = "slds-"; var svgns = "http://www.w3.org/2000/svg"; var xlinkns = "http://www.w3.org/1999/xlink"; var size = component.get("v.size"); var name = component.get("v.name"); var classname = component.get("v.class"); var containerclass = component.get("v.containerClass"); var category = component.get("v.category"); var containerClassName = [ prefix+"icon_container", prefix+"icon-"+category+"-"+name, containerclass ].join(' '); component.set("v.containerClass", containerClassName); ...Read now
Unlock full access