Expose a lightning component to salesforce classic
I want to expose a lightning component to salesforce classic.
I know we expose the component using visualforce page (refer this link) but is there a way that we can directly expose it to the salesforce classic UI using some features. What is the lightning component in salesforce?
The Lightning Component framework is a UI framework for developing web apps for mobile and desktop devices. It's a modern framework for building single-page applications with dynamic, responsive user interfaces for Lightning Platform apps. It uses JavaScript on the client side and Apex on the server side.
Now move to how to expose a lightning component to salesforce classic?
However,I have not attempted it, because to me it feels like using technology for technology sake, but I have mused about creating a Lightning app page and accessing it from the classic UI. It can be done in an iFrame via a custom web tab, or from a custom URL link button.
However I suspect the experience of such a cobbled approach would make for a crappy user experience without some kind of extreme UI acrobatics. So my own contempt-prior-to-investigation (and limited amount of time to experiment) has prevented me from attempting this to see how it might work.
But hey...feel free to give it a try. If it works and your users like it, write a blog post and tweet about it.
But for me, if I plan to build a custom UI for the classic UI, Visualforce gives me all kinds of tools to do this already. That's how I would do it.
Update: I just tested the web tab option, and it fails due to serving of lightning urls resources with the header: X-FRAME-OPTIONS:SAMEORIGIN. So give the custom button a try, maybe?