Description
The checklist pattern provides a convenient method to add options to select and deselect all checkboxes in a block.
Documentation
The checklist pattern provides a convenient method to add options to select and deselect all checkboxes in a block. This requires two changes in your markup:
- add a
pat-checklist
class to the containing element - add a select and deselect buttons
Here is a simple example.
The selectors used to find the select-all and deselect-all buttons are
configurable. The default values are .functions .select-all
and
.functions .dselect-all
. You can configure them using shorthand
notation: