Topic: SideNav 2 - Cannot manipulate SideNav through API

CALDR free asked 3 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 3 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

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.0
  • Device: Desktop
  • Browser: Brave
  • OS: Windows
  • Provided sample code: Yes
  • Provided link: No