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

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08