accordion.rst 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .. _accordion-block:
  2. Accordion Block
  3. ===============
  4. Creates a collapsible section with a button to toggle.
  5. Each Accordion has multiple sections or panels.
  6. `View example live <https://crxpharma.codered.cloud/demo-blocks/accordion-block/>`_
  7. Example:
  8. .. figure:: images/accordion_closed.jpeg
  9. :alt: demo accordion closed
  10. Demo accordion closed
  11. .. figure:: images/accordion_open.jpeg
  12. :alt: demo accordion with panel open
  13. Demo accordion with panel open
  14. Field Reference
  15. ---------------
  16. Fields and purposes:
  17. * **Accordion** - Choose a preexisting accordion snippet, created under snippets.
  18. Editor:
  19. .. figure:: images/accordion_demo.jpeg
  20. :alt: Editing screen for accordion
  21. Editing screen for accordion
  22. Each Accordion panel needs a name and content. After you make a second panel,
  23. arrows will appear to allow you to change the order of the panels.
  24. .. figure:: images/accordion_arrows.jpeg
  25. :alt: arrows on the accordion panels
  26. Arrows on the accordion panels. They appear after you make a second panel.
  27. Additional Information in the `bootstrap docs <https://getbootstrap.com/docs/5.2/components/accordion/>`_