Javascript API Events

Heads up! 

This archived doc is for an old version of UberMenu. 

For the current documentation, please visit the UberMenu 3 Knowledgebase

ubermenuopen

Fires upon completion of a submenu show animation.

Example (jQuery 1.7+)
//See ubermenu.dev.js for full example
var $li = $u( 'li.ss-nav-menu-item-depth-0' );
var mapHandler = function(){
    google.maps.event.trigger(map, "resize");
    map.setCenter(latlng);
    //Only resize the first time we open
    $li.off( 'ubermenuopen', mapHandler );
}           
$li.on( 'ubermenuopen', mapHandler );
Example (jQuery 1.6)
//See ubermenu.dev.js for full example
var $li = $u( 'li.ss-nav-menu-item-depth-0' );
var mapHandler = function(){
    google.maps.event.trigger(map, "resize");
    map.setCenter(latlng);
    //Only resize the first time we open
    $li.unbind( 'ubermenuopen', mapHandler );
}           
$li.bind( 'ubermenuopen', mapHandler );

ubermenuclose

Fires upon completion of a submenu hide animation.

On this page