Debian Codegraph @

skins/MinervaNeue/includes/Skins/ToggleList/ToggleList.mustache

raw
1 {{!
2 A list with visibility toggled by a checkbox.
3 string|null class Optional CSS class for the root element.
4 string checkboxID CSS identifier unique to the page needed to connect label and input.
5 string|null toggleID Optional toggle button CSS identifier to connect label and toggle aria.
6 string|null listClass Optional list CSS class.
7 object data-btn optional button information for Button template
8 array|null items Optional array of drop down list items for the unordered list.
9 }}
10 <div class="toggle-list {{class}}">
11 <input
12 type="checkbox"
13 id="{{checkboxID}}"
14 class="toggle-list__checkbox"
15 role="button"
16 aria-labelledby="{{toggleID}}"
17 aria-expanded="false"
18 aria-haspopup="true">
19 {{#data-btn}}{{>Button}}{{/data-btn}}
20 <ul class="toggle-list__list new {{listClass}}" id="{{listID}}">
21 {{#items}}
22 {{> ToggleList/ToggleListItem}}
23 {{/items}}
24 </ul>
25 </div>