You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pat/navigation/documentation.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,14 @@
1
1
## Description
2
2
3
-
Marks navigation paths with "in-path" and "current" classes and allows of auto-injecting content when menu item was marked with the "current" class.
3
+
Marks navigation paths with "in-path" and "current" classes.
4
+
4
5
5
6
## Documentation
6
7
7
8
The "in-path" and "current" classes and the "item-wrapper" are configurable.
8
-
Use the "navigation-load-current" class on the navigation wrapper element to content from menu items marked with the "current" class.
9
+
10
+
You can automatically load the navigation item marked with the `current` class by adding the class `navigation-load-current` along with `pat-navigation` on the pattern element.
11
+
This would invoke a `click` event on the current navigation item and that can be used to load content via `pat-inject`.
0 commit comments