Socket
Book a DemoInstallSign in
Socket

@macaulay2/boot-side-menu

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@macaulay2/boot-side-menu

A jQuery plugin to easily create a sliding menu, working on a Bootstrap based application.

latest
Source
npmnpm
Version
2.2.1
Version published
Maintainers
1
Created
Source

This is a fork of the original, but no longer maintained, package by Andrea Lombardo for use by the Macaulay2 Visualize package.

BootSideMenu

After a long time a new (hope better) version is here. BootSideMenu is a jQuery plugin to easily build a sliding menu in a Bootstrap based application.

Online demo can be found HERE.

Options

OptionTypeValueDescriptionDefault
sideStringleft or rightWhere menu will be placedleft
durationIntegermillisecondsAnimation duration500
rememberBooleantrue or falseRestore last menu status on page refreshtrue
autoCloseBooleantrue or falseIf true the initial status will be "closed"false
pushBodyBooleantrue or falseIf true the body of the page will be pushed left or right, according to the menu width and positionfalse
closeOnClickBooleantrue or falseIf true the menu will be closed when a link is clicked or if a click is made outside of ittrue
iconsObjectAn object where to specify the icon fonts classesA way to use other icon fonts instead of glyphiconicons: {left: 'glyphicon glyphicon-chevron-left', right: 'glyphicon glyphicon-chevron-right', down: 'glyphicon glyphicon-chevron-down'}
themeString'default', 'dracula', 'darkblue', 'zenburn', 'pinklady', 'somebook'Five themes plus a default one. Your is welcome.'default'

Events

EventDescriptionDefault
onStartupA function to be executed when the menu is instantiateddo nothing
onTogglerClickA function to be executed when the toggler arrow is clickeddo nothing
onBeforeOpenA function to be executed before the menu is openeddo nothing
onOpenA function to be executed when the menu is openeddo nothing
onBeforeCloseA function to be executed before the menu is closeddo nothing
onCloseA function to be executed when the menu is closeddo nothing

Methods

MethodDescription
$(selector).BootSideMenu.open();Open menu programmatically
$(selector).BootSideMenu.close();Close menu programmatically
$(selector).BootSideMenu.toggle();Toggle menu programmatically
Watch in action HERE.

Examples

Watch the examples folder to see it in actions or try an Online Demo

Donations

Coffee and beers are well accepted! :coffee: PayPal Donations Here :beer:

Keywords

jquery

FAQs

Package last updated on 04 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts