Elementor SmartMenu widget defaults

PHOTO EMBED

Mon Dec 30 2024 11:48:10 GMT+0000 (Coordinated Universal Time)

Saved by @rstringa

<script>
    
    jQuery(function(){
	jQuery( window ).on( 'elementor/frontend/init', function() { //wait for elementor to load
		elementorFrontend.on( 'components:init', function() { //wait for elementor pro to load
			
			jQuery.fn.smartmenus.defaults.noMouseOver = true;
		
// 			jQuery.fn.smartmenus.defaults.showOnClick = true;
		});
	});
});
    
</script>

fn.smartmenus.defaults = {
    isPopup: false,
    mainMenuSubOffsetX: 0,
    mainMenuSubOffsetY: 0,
    subMenusSubOffsetX: 0,
    subMenusSubOffsetY: 0,
    subMenusMinWidth: '10em',
    subMenusMaxWidth: '20em',
    subIndicators: true,
    subIndicatorsPos: 'prepend',
    subIndicatorsText: '+',
    scrollStep: 30,
    scrollAccelerate: true,
    showTimeout: 250,
    hideTimeout: 500,
    showDuration: 0,
    showFunction: null,
    hideDuration: 0,
    hideFunction: function($ul, complete) { $ul.fadeOut(200, complete); },
    collapsibleShowDuration: 0,
    collapsibleShowFunction: function($ul, complete) { $ul.slideDown(200, complete); },
    collapsibleHideDuration: 0,
    collapsibleHideFunction: function($ul, complete) { $ul.slideUp(200, complete); },
    showOnClick: false,
    hideOnClick: true,
    noMouseOver: false,
    keepInViewport: true,
    keepHighlighted: true,
    markCurrentItem: false,
    markCurrentTree: true,
    rightToLeftSubMenus: false,
    bottomToTopSubMenus: false,
    overlapControlsInIE: true
};
content_copyCOPY