Collapsing blocks
Basic Setup
To enable collapse tabs for an entity, follow these steps:
Add the
collapse-tabs
class to the block with thearticle__header
class.The entity structure must match the following template:
Additional Settings
1. Disabling Default Opening of the First Tab
To prevent the first tab from opening automatically, pass the defaultNotActive = true
parameter:
2. Setting a Default-Open Entity
To make an entity open by default (when others are closed), add the default-show-tabs
class to the wrapper block:
Last updated