Skip to main content
faraza4154
Known Participant
Oct 31, 2022 1:21 PM UTC
Question

How to make a card layout collapsable?

How to make a card layout collapsable?

8 replies

mikes0011
Brainy
Oct 31, 2022 1:34 PM UTC

That's not a feature of a!cardLayout().  You could potentially accomplish a similar effect with a!boxLayout(), though.

Also note: there's nothing keeping you from implementing something like this in a!cardLayout() - manually, for yourself.  You could have a Rich Text Icon in your card somewhere which, when clicked, hides all contents of the card (other than a "reopen" icon).  That wouldn't be very difficult to do, wouldn't require any unusual workarounds, but isn't a built-in feature.

The Expression Guru
Inspiring
Oct 31, 2022 1:52 PM UTC

Yes, we can make a box layout using two card layouts and by clicking on the one card we can hide or show the another card.

mikes0011
Brainy
Oct 31, 2022 1:53 PM UTC

box layouts now have built-in collapsibility, so this workaround should no longer be needed, fyi.

The Expression Guru