You need to sign in to do that
Don't have an account?
Mark Gallagher
Opening Lightning Component with JavaScript
I want to know if I can open an lightning component through a button on a visualforce page.
Each button corresponds to a different component that I want to pop up I was wondering if I could write javascript to do this. If so what would that look like? I've never written javascript before.
<--- Visual Force Page --->
<apex:page standardController="Leverage__c">
<apex:form >
<h1>
Support Services
</h1>
<apex:pageBlock>
<apex:pageBlockButtons>
<apex:commandButton value="Batman" onclick=""/>
<apex:commandButton value="Superman" onclick=""/>
<apex:commandButton value="Wonder Woman" onclick=""/>
<apex:commandButton value="Flash" onclick=""/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Each button corresponds to a different component that I want to pop up I was wondering if I could write javascript to do this. If so what would that look like? I've never written javascript before.
<--- Visual Force Page --->
<apex:page standardController="Leverage__c">
<apex:form >
<h1>
Support Services
</h1>
<apex:pageBlock>
<apex:pageBlockButtons>
<apex:commandButton value="Batman" onclick=""/>
<apex:commandButton value="Superman" onclick=""/>
<apex:commandButton value="Wonder Woman" onclick=""/>
<apex:commandButton value="Flash" onclick=""/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>