It would be very helpful if it was possible to give custom classes to collapse buttons for the collapse/non-collapsed state via attributes. At the moment only the class "collapse" is added/removed.
This makes it very tedious to rewrite animations if you use an animation library that relies on active/non-active classes.