1.0.9 • Published 9 months ago

@synapsium/ngx-scrollbar v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Setup

Installation

Install ngx-scrollbar library from npm

npm install @synapsium/ngx-scrollbar --save

Style

Import ngx-scrollbar style into your project styles.css

@import '../node_modules/@synapsium/ngx-scrollbar/styles/styles.scss';

Module usage

Add ScrollbarModule to module

import { ScrollbarModule, ScrollbarConfig, SCROLLBAR_CONFIG } from '@synapsium/ngx-scrollbar';

const DEFAULT_SCROLLBAR_CONFIG: ScrollbarConfig = {
  autoHide: true,
  trackbarMinThickness: 17,
  trackbarMaxThickness: 20,
  barMinSize: 20
};

@NgModule({
  ...
  imports: [
    ...
    ScrollbarModule
  ],
  providers: [
    {
      provide: SCROLLBAR_CONFIG,
      useValue: DEFAULT_SCROLLBAR_CONFIG
    }
  ]
})

How to use

Add scrollbar directive to the container

<div scrollbar 
    [auto-hide]="false">
    <!-- Your content here... -->
</div>
1.0.9

9 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago