mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-74229 navigation: add data-key to navtabs
This commit is contained in:
parent
9344149aba
commit
f0e32f99b4
@ -83,6 +83,7 @@ class primary implements renderable, templatable {
|
||||
'text' => $node->text,
|
||||
'icon' => $node->icon,
|
||||
'isactive' => $node->isactive,
|
||||
'key' => $node->key
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@
|
||||
</li>
|
||||
{{/haschildren}}
|
||||
{{^haschildren}}
|
||||
<li class="nav-item" role="none" data-forceintomoremenu="{{#forceintomoremenu}}true{{/forceintomoremenu}}{{^forceintomoremenu}}false{{/forceintomoremenu}}">
|
||||
<li data-key="{{key}}" class="nav-item" role="none" data-forceintomoremenu="{{#forceintomoremenu}}true{{/forceintomoremenu}}{{^forceintomoremenu}}false{{/forceintomoremenu}}">
|
||||
{{#tab}}
|
||||
{{#is_action_link}}
|
||||
<a role="menuitem" class="nav-link {{#classes}}{{.}} {{/classes}}" href="{{tab}}" data-toggle="tab" data-text="{{{text}}}" aria-current="false" data-disableactive="true" tabindex="-1">
|
||||
|
Loading…
x
Reference in New Issue
Block a user