I am trying to put indicators like text with Open or close or arrows up and down inside a “head” element to show state of the collapse container “body” below it, but cannot find a way though toggle classes or using the show/hide state(dynamic attr) of the collapse container.
Seems like that option is not available yet? Or is there a way to do it otherwise?
Hi @pixlapps,
It’s actaully easy to do this. When collapsed the header element has a class of “.collapsed”.
So inside it add the two elements to show/hide elements and add them some custom classes like - “.panel-open” and “.panel-closed”:
@Teodor Thanks tried this but my header definately does not have the .collapsed class. I can see “collapse show” for the body in inspector but nothing happening on my “clicked” element. Example code: