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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -