-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion - Set expanded state in browser storage #20
Comments
I also personally like their section progressbar and woud love to see that implemented in multitopic format as well. Kudos on building this format! |
Sorry, I don't think I'll have time to look into this properly (and I'm somewhat apprehensive about adding new features anyway). In case it's of interest, though: I've tried something out for storing the expanded state for topics, based on the code you linked, in this branch: I've also started something for completion progress, in this branch: [EDIT: These branches were based off the code_prechecks branch. So you'd have to compare with that to see relevant changes.] |
Expanded state is now stored in the latest release for Moodle 4. Since it's default Moodle 4 behaviour, it came basically for free with the update to support drag and drop. |
A minor suggestion - You might consider creating a storing the expanded state for a tab in the browsers local storage. I've seen it help Ux.
Collapsible Topics format does it here:
https://github.com/cellule-tice/moodle-format_collapsibletopics/blob/master/amd/src/collapsibletopics.js
The text was updated successfully, but these errors were encountered: