@addapptables/perfect-scrollbar
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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 @addapptables/perfect-scrollbar
8 2.x
7 1.x
npm i @addapptables/perfect-scrollbar perfect-scrollbar --S

How to use

Import AddapptablePerfectScrollbarModule in your module

   import { AddapptablePerfectScrollbarModule } from '@addapptables/perfect-scrollbar';
    @NgModule({
        imports: [AddapptablePerfectScrollbarModule]
    })
    export class AddapptableModule { }
    .menu-scroll-container{
        position: relative; //this property is important
    }
<div addapptablesPerfectScrollbar 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 addapptablesPerfectScrollbar [perfectScrollOptions]="{ wheelPropagation: true }" class="menu-scroll-container">
    ...large content
</div>

/@addapptables/perfect-scrollbar/

    Package Sidebar

    Install

    npm i @addapptables/perfect-scrollbar

    Weekly Downloads

    4

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    58 kB

    Total Files

    24

    Last publish

    Collaborators

    • teogl