-
Improvement
-
Resolution: Fixed
-
Blocker
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
MDL-65928-master-2 -
-
2
-
Sprint 2 - Experimental
Who is this project for?
- For Moodle devs!; and
- Ultimately for Moodle users!
What is the problem that you're trying to solve?
- dobedobedoh created the awesome core/checkbox-toggleall AMD module. However, to be able to use it, you will have to do various stuff first (e.g. import the AMD module, manually edit the HTML/attributes of the elements to add the required data attributes, etc).
- It currently doesn't have support for toggling the state of action elements (e.g. buttons that perform actions on the selected items.
- It currently doesn't support toggling of nested checkbox elements (e.g. master checkbox toggles all checkboxes, while another master checkbox that toggles a subset of those checkboxes)
Why does it need solving?
- It would help developers to easily use the checkbox_toggleall element!
- We'll be able to provide a more consistent method of selecting/deselecting items on a list.
How does your project tackle the problem?
- The patch for this issue provides an easier way for developers to output a toggle-all checkbox that can control a group of checkboxes on a list. Developers will simply have to implement the following:
- Define master checkbox(es) - responsible for toggling the checkboxes in the list.
- Define slave checkboxes
- (Optional) Assign appropriate data attributes to action elements. Action elements are those who perform actions on the selected items.
- The improvements on the core/checkbox-toggleall will also
- enable support for toggling the state (enabled/disabled) of action elements. This will help us clean up the custom JS code for enabling/disabling the action elements scattered all throughout moodle.
- allow master checkboxes to belong to multiple toggle groups. In other words, this means that master checkboxes can control one or more groups of checkboxes. This is particularly helpful for selecting multiple items belonging to different groups.
- blocks
-
MDL-33671 Add ability to bulk delete files in "My private files" repository
- Closed
-
MDL-65933 Use the checkbox-toggleall component for the database activity
- Closed
-
MDL-65935 Use the checkbox-toggleall component for the feedback activity
- Closed
-
MDL-65937 Use the checkbox-toggleall component for the lesson activity
- Closed
-
MDL-65938 Use the checkbox-toggleall component for the quiz activity
- Closed
-
MDL-65946 Use the checkbox-toggleall component for the SCORM package activity
- Closed
-
MDL-65948 Use the checkbox-toggleall component for the gradebook setup page
- Closed
-
MDL-65994 Use the checkbox-toggleall component for the question bank
- Closed
- has been marked as being related by
-
MDL-69964 The "Select all X users" button doesn't activate the drop-down menu in Participants Page
- Closed