Open Closed

Lepton X without Perfect-Scrollbars #8497


User avatar
0
vondrm1 created

Hello, is it possible to turn off the perfect-scrollbars in the leptonx theme without to build our custom theme? There is some options or other methods ?

Thank's for reply

Milan


4 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    which UI?

  • User Avatar
    0
    vondrm1 created

    We use MVC (Razor pages)

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We will remove it starting from the Leptonx theme 4.1.0 version.

    You can try:

    Add a patch.js to wwwroot

    leptonx.init.push("initPerfectScrollbar", function(){
        console.log("Remove PerfectScrollbar method");
    })
    

    Add js file to the bundle

    Configure<AbpBundlingOptions>(options =>
    {
        
        options.ScriptBundles.Configure(
            LeptonXThemeBundles.Scripts.Global,
            bundle =>
            {
                bundle.AddFiles("/patch.js");
            }
        );
    });
    
  • User Avatar
    0
    vondrm1 created

    Hello, that works perfectly, thank you

    Milan

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09