Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:component > <apex:includeLightning /> <script> var myUserContext = "{!$User.UITheme}"; $Lightning.use("c:sampleApp", function() { $Lightning.createComponent( "c:samplecomponent", { UserContext: myUserContext }, "myDivId", function(cmp) { console.log('component created'); console.log(cmp); }); }); </script> <apex:attribute name="myValue" description="This is the value for the component." type="String" required="true"/> <apex:attribute name="borderColor" description="This is color for the border." type="String" required="true"/> <h1 style="border:{!borderColor}"> <apex:outputText value="{!myValue}"/> </h1> </apex:component>
Hi,
Please check this guide maybe this will help you:
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_visualforce.htm
Even if you have to do it, lightning out is the only way possible.
You can give a try to see if it works
Anudeep
Hi,
Please check this guide maybe this will help you:
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_visualforce.htm