Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

v5.6.0 Menu Expanded by Default #5636


User avatar
0
mdframe created

I am looking to set my menu groups to be collapsed by default insted of expanded. I found an older question asking the same thing https://support.aspnetzero.com/QA/Questions/4403 which was identified as a bug? then corrected in version 5. Has this reappeared in this version and shouldn't or is their a setting where I can default all menu categories to collapsed.

My application is using ASP.Net Core 2.1 and Angular 6 (v5.6.0).

Thank you,

Matt


6 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Removed 'm-menu__item--expanded m-menu__item--open' and it is collapsed by default now.

    Check this change: 517e01cc79210781bd5c1c06bc8d9364d8d229b9#diff-04d37ee483d5fd6633b7c5baccfaf879L12

  • User Avatar
    0
    mdframe created

    Are you stating it is being fixed, has been fixed or will be fixed? The code differences are so great I am unsure what you are trying to state with the github link. Should I update angular/src/app/shared/layout/nav/side-bar-menu.component.html with the same code changes and it will be fixed or their other code dependencies with all the updates associated with the change link?

    Thanks,

    Matt

  • User Avatar
    1
    alirizaadiyahsi created

    @mdframe, sory for conflict. I checked it will be fixed in version 6.0

    In file : angular/src/app/shared/layout/nav/side-bar-menu.component.html If you change line 12 and remove this : [ngClass]="{'m-menu__item--expanded m-menu__item--open': menuItem.items.length > 0}" then it should be collapsed by default.

  • User Avatar
    0
    mdframe created

    Thank you for the details. Is version 6.0 being released soon?

  • User Avatar
    0
    alirizaadiyahsi created

    Check this: 1639

    probably this week.

  • User Avatar
    0
    rcoville created

    @alirizaadiyahsi - Tried the change you suggest too side-bar-menu.component.html. While it does start with all the menu items collapsed. I lose the ability to scroll the menu to reach items below the fold. When I replace the code : [ngClass]="{'m-menu__item--expanded m-menu__item--open': menuItem.items.length > 0}" the scolling works again.

    Any thoughts?