Modify

Opened 7 years ago

Last modified 6 years ago

#13437 new enhancement

Allow default state to be collapsed

Reported by: anonymous Owned by: Peter Suter
Priority: normal Component: FoldMacroProcessorMacro
Severity: normal Keywords:
Cc: Trac Release:

Description

For me this macro was not really useful until I modified it so that it displays as collapsed by default. The change is actually pretty simple, but I guess one would want it as parameter like the 'tag' and it might upset current users if the default behavior was overwritten.

Sadly my time does not allow to propose a finished patch, so I will just point out the idea: add the class collapsed in the outermost div using a new parameter: tag.div(... , class_="collapsed")

Now it works as I would expect and I want to thank you for the great plugin!

Tom K.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by anonymous

Sounds like an easy patch and matches what I would logically assume to be the default as well (being collapsed). I'm going to modify this myself but I also lack the energy to create a PR/patch/etc.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Peter Suter.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.