We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc1c16 commit a63358eCopy full SHA for a63358e
README.md
@@ -74,3 +74,15 @@ Use this function to an HTMLElement should it shown and hidden in a navigation s
74
* Default: false
75
* Hide content of top level linkContainer when the user clicks a sub link in the content of the linkContainer.
76
* Sub links are defined by subLinkQuery.
77
+### Example
78
+```javascript
79
+if( navMenu = document.getElementById('primary-panel-nav') ) {
80
+ navMenu.showHideNav({
81
+ linkQuery: 'ul > li > a',
82
+ showOnHover: false,
83
+ hideOnOffClick: true,
84
+ subLinkQuery: 'A',
85
+ hideOnSublinkClick: true
86
+ });
87
+}
88
+```
0 commit comments