mediawiki-skins-MinervaNeue/components/ToggleList/ToggleListItem.mustache

17 lines
572 B
Plaintext
Raw Normal View History

{{!
array components
string|null components.class Optional anchor CSS class.
string|null components.href Optional URI.
string|null components.text Optional text.
string|null components.data-event-name Optional tracking code.
}}
{{#components}}
<li class="toggle-list-item">
<a class="toggle-list-item__anchor {{class}}" href="{{href}}"
data-event-name="{{data-event-name}}" data-mw="interface">
{{#icon}}<span class="mw-ui-icon mw-ui-icon-{{.}}"></span>&nbsp;{{/icon}}
<span class="toggle-list-item__label">{{text}}</span>
</a>
</li>
{{/components}}