SideNav 2 - Cannot manipulate SideNav through API


Topic: SideNav 2 - Cannot manipulate SideNav through API

CALDR asked 5 years ago

Expected behavior

Being able to control multiple aspects of the sidenav through code. Like opening/closing/toggling the menu and the "slim" variant.

Being able to set the "push" distance on the "push" mode. Now it's a fixed amount of 3.75rem.

Being able to set an argument to start open/closed is a nice to have if the API is working.

Having documentation for SideNav2 instead of browsing the source code.

Actual behavior

Resets the whole options and initializes the sideNav menu again when using .sideNav2("show")

Resources (screenshots, code snippets etc.)

$sideNavObject.sideNav2({
    slim: true,
    menuWidth: 200,
    showOverlay: false,
    mode: 'push'
});

$sideNavObject.sideNav2("show");

Grzegorz Bujański staff commented 5 years ago

Hi. Thanks for reporting this. We'll fix it.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.0
  • Device: Desktop
  • Browser: Brave
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags