{{#extend "layout-docs"}} {{#replace "pageTitle"}}Checkbox select all{{/replace}} {{#replace "main"}}
{{#each checkbox-select-all}}

{{description}}

{{> checkbox-select-all}}
{{> checkbox-select-all-src}}
{{/each}}

Introduction

The select all checkbox must be contained within a table and contain one or more input[type="checkbox"] elements. The data-js=checkbox-select-all attribute should be added to the element that is to trigger the bulk toggle. This behaviour will function correctly on both unstyled checkboxes and checkboxes styled with the data-js=input-checkbox helper.

Usage

Class name Effect Remarks
[data-js="checkbox-select-all"] Placed directly on the input[type="checkbox"] element. Required.
{{/replace}} {{/extend}}