aura component not visible in lightning app builder - Salesforce Globe For You
Problem: The below TestAuraComponent.cmp is created but when trying to create new lightning page this component is not visible to drag.
TestAuraComponent.cmp
<aura:component >
<lightning:card title="Aura Component">
<b style="padding-left:20px">Testing Aura Component</b>
</lightning:card>
</aura:component>
Solution: To make your component visible available for record pages and any other type of page,you need to implement flexipage:availableForAllPageTypes interface as shown below.
<aura:component implements="flexipage:availableForAllPageTypes">
<lightning:card title="Aura Component">
<b style="padding-left:20px">Testing Aura Component</b>
</lightning:card>
</aura:component>
Output:
No comments:
Post a Comment