SilkUI\Controls\SectionExpandable - Expand and collapse

SilkUI\Controls\SectionExpandable - Expand and collapse

  

When there are multiple sections, how do you collapse all sections and expand only the selected section?


First we need to detect one current section is opened/selected, so we could close all other sections.

When section is open the style is - overflow: visible;

When section is closed the style is - overflow: hidden;


Robert,


Shouldn't you use the accordion widget for that? That logic is a default function for the accordion widget.


Kind regards,

Evert