I am needing a switch statement, and depending on the type of file uploaded, I want to change the background of the uploader to represent the file type (pdf, doc, txt, etc...).
So, <lightning:icon iconName="doctype:pdf" />
in the component doesn't really work since the icon is just there...
How do I, in the javascript controller of a Lightning component, access these icons and set the background of an element, or src of an image to these icons programmatically?