1.0.1 • Published 6 years ago
@be4code/ngx-double-scrollbar v1.0.1
NgxDoubleScrollbar
ngx-double-scrollbar
is Angular component that generates second scrollbar when the content is long enough to create a horizontal scrollbar.
Installation
To use ngx-double-scrollbar
in your project install it via npm:
npm install --save @be4code/ngx-double-scrollbar
Usage
Import DoubleScrollbarModule
and add it to module imports.
import { DoubleScrollbarModule } from '@be4code/ngx-double-scrollbar';
@NgModule({
imports: [
DoubleScrollbarModule
]
})
Wrap a long element with <ngx-double-scrollbar></ngx-double-scrollbar>
<ngx-double-scrollbar>
<div class="long-content">
...
</div>
</ngx-double-scrollbar>
When ngx-double-scrollbar
content is longer than its container, two scrollbar will be shown: one above and one below the content.
License
This project is licensed under the MIT License - see the LICENSE file for details