1.0.1 • Published 6 years ago

@be4code/ngx-double-scrollbar v1.0.1

Weekly downloads
43
License
MIT
Repository
github
Last release
6 years ago

npm version npm downloads Build Status

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

1.0.1

6 years ago

1.0.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago