Skip to content

Commit

Permalink
update readme with spa option
Browse files Browse the repository at this point in the history
  • Loading branch information
kshaner committed Feb 3, 2016
1 parent 3bf1a42 commit 1c1abc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jQuery('#node').dropdown(options);
{
delay: 250, // delay in milliseconds for hover intent
openClass: 'dropdown--open', // class that is added to node when dropdown is open
menu : '> ul' // selector for submenu, events will not be added if menu is not found,
menu : '> ul', // selector for submenu, events will not be added if menu is not found
spa : false, // set to true for single page application mode - the links will not be followed in the menu but will close the menu on click
beforeOpen: function() {}, // is called as the class is about to be added, return false to cancel the rest of the open event, 'this' refers to dropdown object
afterOpen: function() {}, // is called after the open class has been added, useful in case measurements need to be made, 'this' refers to dropdown object
beforeClose: function() {}, // is called before the open class is about to be removed, return false to cancel the rest of the close event, 'this' refers to dropdown object
Expand Down

0 comments on commit 1c1abc1

Please sign in to comment.