salesforce - Is It possible to use Lightning app exchange components in custom lightning app? -
i installed lightning component app exchange ,now want use component in custom lightning app
is possible??
<aura:app> //code adding components </aura:app>
if working components:
<aura:component > <aura:handler name="init" value="{!this}" action="{!c.doinit}"/> {!v.body} </aura:component>
and in controller ("mvc:calendarcomponent" example, put here component):
doinit : function(component, event, helper) { $a.createcomponent( "mvc:calendarcomponent", { }, function(newcmp){ if (component.isvalid()) { component.set("v.body", newcmp); } } ); }
Comments
Post a Comment