function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pavan Kumar 154Pavan 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??
 
<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
 
Mark SFMark SF
Did you create facetHeader.cmp, as described in https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_facets.htm ?

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>