Open Closed

LeptonX MVC, Hid side menu by default #4609


User avatar
0
WilliamT created
  • ABP Framework version: v6.0.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How do i hide side menu by default? I want it to have class "hover-trigger" by default.


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can try this:

    global.js

    $(function(){
        if($("#lpx-wrapper").length > 0)
        {
            $("#lpx-wrapper").addClass("hover-trigger")
        }
    })
    
    Configure<AbpBundlingOptions>(options =>
    {
        options.ScriptBundles.Configure(
            LeptonXThemeBundles.Scripts.Global,
            bundle =>
            {
                bundle.AddFiles("/global.js");
            }
        );
    });
    
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09