Read the original Bootstrap documentation on collapsible content here.
The collapse block gives you the ability to add content to your page that can be toggled to visible or hidden with the click of a button or link. For the collapse block to function properly it must have a unique value in the HTML Anchor option eg:
my-collapse. This will add an id attribute to the collapse block. You can then toggle this content using a button or a link with the href attribute matching the specified id eg:
Sweet roll donut jelly beans jelly beans muffin. Cupcake jujubes bonbon shortbread lollipop. Bonbon brownie bonbon halvah lollipop gummi bears jujubes. Bear claw bonbon macaroon jujubes toffee chocolate cake muffin.
In order to get the collapse block to function there are a few steps you need to take:
An example of this would be to add the HTML anchor attribute to the collapse block of my-collpase you would then need to add a link or button that links to #my-collapse. The rest will be taken care of for you.
The collapse block has the follwoing options:
The open option allows you to specify whether the collapse block should be open or closed on page load. By default the content will be hidden, to make it visible on page load check this option.
Blocks tend to have a large number of settings along with different settings for each device size. You may get to the point where you have changed lots of settings and want to revert them back to the default. This can be time consuming and difficult to remember which settings have been changed to we have supplied three buttons that make this a piece of cake. Simply click the relevant button to reset your settings.
The HTML anchor option allows you to set an ID on the current block. This is useful when you wish to link to a specific area on a page.
The additional class(es) option lets you add any other classes to the block. This is really useful as it allows you to utilise all of the Bootstrap utility classes to quickly apply styles and add more advanced customisations. A few examples of this would be to align all inner content by adding the
text-end classes. You also have the ability to quickly search all of the available Bootstrap classes. To search Bootstrap classes open the Add Bootstrap class select box. You can filter the results by typing in the available search field. When you select an option it will automatically be added to your class list.