npm.io
0.1.8 • Published 3 years ago

jquery-scrollbar-angular

Licence
MIT
Version
0.1.8
Deps
3
Size
27 kB
Vulns
0
Weekly
0

JqueryScrollbarAngular

What is this?

Angular 14+ directive wrapper for jquery.scrollbar plugin.

Live demo

My personal site page

More live demo samples can be found on jquery-scrollbar author's page: https://gromo.github.io/jquery.scrollbar/demo/basic.html

Installation

npm i jquery-scrollbar-angular

In your angular.json add following scripts:

"scripts": [
  ....
  "./node_modules/jquery/dist/jquery.min.js",
  "./node_modules/jquery.scrollbar/jquery.scrollbar.min.js"
]

Import JqueryScrollbarAngularModule in your app.module.ts:

import { JqueryScrollbarAngularModule } from "jquery-scrollbar-angular";

... and add imported module to imports:

imports: [
    BrowserModule,
    AppRoutingModule,
    ...,
    JqueryScrollbarAngularModule
  ],

Start using imported directive, e.g.:

<div class="content" jquery-scroll-bar>
...
</div>

More documentation

For more information on jquery.scrollbar - see author's page on Github: jquery.scrollbar

Keywords