Options

Supermenu provides a set of options for customizing your menu. The default values can be overridden by passing new values to the method.

<script>
        $(document).ready(
            function() {
                $("#menu").supermenu({
                    // supermenu-options
                });
            }
        );
</script>    

                                

Options are considered to be arbitary and can be changed without breaking the plugin.

Available options

Option
Type
Default value
Description
width
string
70%
Defines the width of the menu
theme
string
light
Defines the theme of the menu
position
string
right
Defines the openig position of the menu
triggerActiveClass
string
sm-menu-active
Active class for menu
triggerClass
string
.sm-menu-trigger
Trigger class for menu Opening
padding
array
-
Set padding
margin
array
-
Set Margin for Menu
title
string
-
Sets a title with a Text
footer
string
-
Sets a footer with a HTML code