You need to sign in to do that
Don't have an account?
Aam M
javascript function to fetch all contacts on click button
I've created a lightning component and included that in VF page, and that component is button (ui:button),
For this ui:button component, I want write function when I click this button all contacts should be displayed in the screen,
Can anyone tell me the function?
For this ui:button component, I want write function when I click this button all contacts should be displayed in the screen,
Can anyone tell me the function?
<apex:page > <apex:includeLightning /> <div style= "width:90%;height:70px;align:center" id="FlipContainer" /> <br/> <div style= "width:90%;height:40px;align:center" id="ButtonCon" /> <script> $Lightning.use("c:DemoFlipContain", function(){ $Lightning.createComponent("c:FlipCard", { borderColor : "#16325c", bgColor : "#16325c" , fontColor : "White", frontText : "Race2Cloud Technologies", backText : "Partnership with Salesforce" }, "FlipContainer", function(cmp) { console.log('Component created, do something cool here'); }); $Lightning.createComponent("ui:button", { label : "See Contacts!" }, "ButtonCon", function(cmp) { }); }); </script> </apex:page>
Hi You can try in this way!
Here is working example for account you can impltement this very easily.
https://trailhead.salesforce.com/modules/lightning_design_system/units/lightning-design-system4
I have created page for contact object you can see all list in alert.