1.0.6 • Published 1 year ago

@ngartifex/perfect-scrollbar v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ADDAPPTABLES Perfect-scrollbar

Utility for scroll browser

Getting Started

To get started, let's install the package through npm:

Choose the version corresponding to your Angular version:

Angular@ngartifex/perfect-scrollbar
134.x
123.x
112.x
101.x
npm i @ngartifex/perfect-scrollbar perfect-scrollbar --S

How to use

Import PerfectScrollbarModule in your module

   import { PerfectScrollbarModule } from '@ngartifex/perfect-scrollbar';
    @NgModule({
        imports: [PerfectScrollbarModule]
    })
    export class AddapptableModule { }
    .menu-scroll-container{
        position: relative; //this property is important
    }
<div perfectScrollbar class="menu-scroll-container">
    ...large content
</div>

Options

export interface Options {
    handlers?: string[];
    maxScrollbarLength?: number;
    minScrollbarLength?: number;
    scrollingThreshold?: number;
    scrollXMarginOffset?: number;
    scrollYMarginOffset?: number;
    suppressScrollX?: boolean;
    suppressScrollY?: boolean;
    swipeEasing?: boolean;
    useBothWheelAxes?: boolean;
    wheelPropagation?: boolean;
    wheelSpeed?: number;
  }
<div perfectScrollbar [perfectScrollOptions]="{ wheelPropagation: true }" class="menu-scroll-container">
    ...large content
</div>
1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.1

1 year ago