Skip to content

Commit a63358e

Browse files
authored
Update README.md
1 parent 7dc1c16 commit a63358e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,15 @@ Use this function to an HTMLElement should it shown and hidden in a navigation s
7474
* Default: false
7575
* Hide content of top level linkContainer when the user clicks a sub link in the content of the linkContainer.
7676
* 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

Comments
 (0)