the default setting of smartmenus is that multiple submenus of the same or different branches can be expanded at the same time.
Which code do I need to achieve, that
a) when one parent-submenu is open and you open a new parent-submenu, that the first one gets closed? (Within the opened parent menu, all sub-menus can be expanded at the same time)
as shown here: https://gjs.co/supplies/c13/digital-printing-and-cutting
Digital printing is expanded. When you click on i.e. Doming, doming expands and digital printing collapses.
b) the same logic as a) but now also the submenus should behave in that manner (when you open a new one, the previous one gets collapsed). https://gjs.co/supplies/c12/dye-sublimation
click on: “printable blanks” open the submenu
click on: “sublimation inks” collapses “printable blanks” and expands “sublimation inks”.