Skip to content

Show/Hide

Show/Hide is used to show more of the same content that is already visible. For example a list of items or attributes that is longer than its initial container view allows.

Lacinia neque, sit amet dictum enim enim ut libero. Pellentesque sagittis tellus.

Lacinia neque, sit amet dictum enim enim ut libero. Pellentesque sagittis tellus. Lacinia neque, sit amet dictum enim enim ut libero. Pellentesque sagittis tellus.

<certara-show-hide>
<p>Lacinia neque, sit amet dictum enim enim ut libero. Pellentesque sagittis tellus.</p>
<div slot="hidden-content">
<p>Lacinia neque, sit amet dictum enim enim ut libero. Pellentesque sagittis tellus. Lacinia neque, sit amet dictum enim enim ut libero. Pellentesque sagittis tellus.</p>
</div>
</certara-show-hide>

certara-show-hide

Properties

PropertyAttributeDescriptionTypeDefault
closedLabelclosed-labelDefault label for closed statestring'Show more'
openopenHidden content will be visiblebooleanfalse
openedLabelopened-labelDefault label for opened statestring'Show less'

Events

EventDescriptionType
certaraClickCustomEvent<any>

Slots

SlotDescription
Container for visible content
"hidden-content"Container for the hidden content

Custom labels...

This example uses the opened-label and closed-label attributes

<certara-show-hide closed-label="Read more" opened-label="Hide">
<p>Custom labels...</p>
<div slot="hidden-content">
<p>This example uses the <code>opened-label</code> and <code>closed-label</code> attributes</p>
</div>
</certara-show-hide>