Push Menu Plugin

The PushMenu plugin controls the toggle button of the main sidebar.

Usage

This plugin can be activated as a jquery plugin or using the data api.

Data API

Add data-toggle="push-menu" to a button to activate the plugin.

JQuery

Options

Name Type Default Description
collapseScreenSize Number 767 Screen width in pixels for small screens.
expandOnHover Boolean FALSE Whether to activate the expand on hover effect.

Events

Event Type Description
expanded.pushMenu Fired when the sidebar expands.
collapsed.pushMenu Fired when the sidebar collapses.

Example: $(document).on('expanded.pushMenu', handleExpandedEvent)

Methods

Method Description
toggle Toggles the state of the menu between expanded and collapsed.

Example: $('[data-toggle="push-menu"]').pushMenu('toggle')

PREMIUM TEMPLATE
MaterialPro

MaterialPro ─ $35

Material Bootstrap 4 Admin Template

Preview Buy Now

12+ purchases