2022-04-18 20:10:12 +00:00
|
|
|
{{!
|
|
|
|
See @typedef MenuDefinition
|
|
|
|
}}
|
|
|
|
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }}
|
|
|
|
|
2022-05-04 22:20:23 +00:00
|
|
|
<nav id="{{id}}" class="vector-menu{{#class}} {{.}}{{/class}}" aria-labelledby="{{id}}-label" role="navigation" {{{html-tooltip}}} {{{html-user-language-attributes}}}>
|
2022-04-18 20:10:12 +00:00
|
|
|
{{#is-dropdown}}
|
|
|
|
<input type="checkbox"
|
|
|
|
id="{{id}}-checkbox"
|
|
|
|
role="button"
|
|
|
|
aria-haspopup="true"
|
|
|
|
data-event-name="ui.dropdown-{{id}}"
|
2022-05-04 22:20:23 +00:00
|
|
|
class="vector-menu-checkbox{{#checkbox-class}} {{.}}{{/checkbox-class}}"
|
2022-04-18 20:10:12 +00:00
|
|
|
aria-labelledby="{{id}}-label"
|
|
|
|
/>
|
|
|
|
<label
|
|
|
|
id="{{id}}-label"
|
|
|
|
{{#aria-label}} aria-label="{{.}}"{{/aria-label}}
|
|
|
|
class="vector-menu-heading{{#heading-class}} {{.}}{{/heading-class}}"
|
|
|
|
>
|
|
|
|
{{{html-vector-heading-icon}}}<span class="vector-menu-heading-label">{{label}}</span>
|
|
|
|
</label>
|
2022-06-06 22:00:38 +00:00
|
|
|
{{/is-dropdown}}
|
|
|
|
{{^is-dropdown}}
|
|
|
|
<h3
|
|
|
|
id="{{id}}-label"
|
|
|
|
{{#aria-label}} aria-label="{{.}}"{{/aria-label}}
|
|
|
|
class="vector-menu-heading{{#heading-class}} {{.}}{{/heading-class}}"
|
|
|
|
>
|
|
|
|
{{{html-vector-heading-icon}}}<span class="vector-menu-heading-label">{{label}}</span>
|
|
|
|
</h3>
|
|
|
|
{{/is-dropdown}}
|
2022-04-18 20:10:12 +00:00
|
|
|
<div class="vector-menu-content">
|
|
|
|
{{{html-before-portal}}}
|
|
|
|
<ul class="vector-menu-content-list">{{{html-items}}}</ul>
|
|
|
|
{{{html-after-portal}}}
|
|
|
|
</div>
|
|
|
|
</nav>
|