Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Meta } from '@storybook/addon-docs/blocks';
import * as AtomicFacetManagerStories from './atomic-facet-manager.new.stories';
import { AtomicDocTemplate } from '../../../../storybook-utils/documentation/atomic-doc-template';

<Meta of={AtomicFacetManagerStories} />

<AtomicDocTemplate
stories={AtomicFacetManagerStories}
githubPath="search/atomic-facet-manager/atomic-facet-manager.ts"
tagName="atomic-facet-manager"
className="AtomicFacetManager"
>

The `atomic-facet-manager` is designed to handle the removal and re-attachement of <a href="?path=/story/atomic-facet--default">facet</a> components
to the DOM.
This means that the [Stencil lifecycle](https://stenciljs.com/docs/component-lifecycle#component-lifecycle-methods) applies to the slotted facets.

If you <a href="https://docs.coveo.com/en/atomic/latest/usage/custom-web-components#custom-component-example">create your own custom facet component</a> and slot it inside of the `atomic-facet-manager`, it will have to be able to handle the Stencil reattachment lifecycle.
Alternately, you can place your custom component outside of the `atomic-facet-manager`, in which case the Stencil lifecycle won’t apply.

</AtomicDocTemplate>
Loading