- π³π±Netherlands perry.franken
Updated the patch so that it work with the 8.x-2.x version. And created a button.
- Status changed to Needs review
12 months ago 11:32am 19 July 2023 - Status changed to RTBC
3 months ago 1:30pm 22 March 2024
Hello,
We use this module on our project, and we would like to have an expand all / collapse all functionality added to the JS.
I refactored and updated the javascript to include collapse all / expand all functionality bound to a button with class ".js--toggle-expand-collapse".
This element also needs a .js--collapse-all or .js--expand-all class, depending if your collapser are default closed or open. (The function toggles between these 2 classes).
Button placement is not included in this feature, we needed a collapse all/expand all button on our menu edit form, so we placed a button on the menu form with these classes through a form_alter hook.
I created a fork based on the dev branch, besides the collapse all / expand all funtionality, this fork also includes:
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Updated the patch so that it work with the 8.x-2.x version. And created a button.