jquery-scrollbar-angular
v0.1.8
Published
Angular 14+ directive wrapper for [jquery.scrollbar](https://www.npmjs.com/package/jquery.scrollbar) plugin.
Downloads
7
Maintainers
Readme
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