You need to sign in to do that
Don't have an account?
Pavan Kumar 154
Salesforce Lightning Components - auradocs does not support facetHeader?
Hi All,
I tried to execute the below code (taken from Lightning Developer's Guide) and i receive error message "Failed to save undefined: No COMPONENT named markup://auradocs:facetHeader found :[markup://MyLighteningApp:helloFacets]: Source"
Am i missing something here??
- Pavan Renjal
I tried to execute the below code (taken from Lightning Developer's Guide) and i receive error message "Failed to save undefined: No COMPONENT named markup://auradocs:facetHeader found :[markup://MyLighteningApp:helloFacets]: Source"
Am i missing something here??
<aura:component> See how we set the header facet.<br/> <auradocs:facetHeader> Nice body! <aura:set attribute="header"> Hello Header! </aura:set> </auradocs:facetHeader> </aura:component>
- Pavan Renjal
Here is the source for facetHeader.cmp.
<aura:component>
<aura:attribute name="header" type="Aura.Component[]"/>
<div>
<span class="header">{!v.header}</span><br/>
<span class="body">{!v.body}</span>
</div>
</aura:component>
Now, instead of <auradocs:facetHeader> in the other component, you can replace auradocs with the namespace you're using. If your org doesn't have a namesapace, use <c:facetHeader>