Skip to content

Product Short Description

This webcomponent renders a link to a full Product Description if it has been connected to the DOM.

Children of the Product Short Description

product-short-description requires you to have two children with specific slot attributes. One with short-description slot attribute and the other one with full-description-link slot attribute. Those attributes indicate in which components the content should be placed.

Attributes

Attribute name Type Description
link (mandatory) string ID of the full description. Needed to sync both components together.

Event Bus events

This webcomponent listens to the following events with the Event Bus:

Example

<product-short-description link="description">
    <div slot="short-description">Short description</div>
    <a slot="full-description-link">Link to the full description</a>
</product-short-description>

Child attributes

Attribute name Type Description
slot either short-description or full-description-link Tell the component where the content should be placed