wts-scroll
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

# Angular Custom Scrollbar v-17+

The Angular Custom Scrollbar Library is a powerful tool for enhancing the scrolling experience within your Angular applications. This library allows you to create highly customizable and stylish scrollbars, giving you full control over the look and feel of your application's scrollable content.

Install

npm install --save wts-scroll

import { Component } from "@angular/core";

import { WtsScrollComponent, ScrollBarOptions } from "wts-scroll";

@Component({
  selector: "<COMPONENT-SELECTOR>",
  standalone: true,
  imports: [WtsScrollComponent],
  templateUrl: "<COMPONENT>.html",
  styleUrl: "<COMPONENT>.scss",
})
export class MyComponent {
  @ViewChild("customScrollBar") private customScrollBar!: WtsScrollComponent;
   protected itemsCount = 10;

  onReachEnd(): void {
    // this.itemsCount < 40 && (this.itemsCount += this.itemsCount);
    console.log('onReachEnd');
  }

HTML

<div class="wts-scroll">
  <div style="height: 100%; width: 100%;">
    <wts-scroll class="_scroll" (onReachEnd)="onReachEnd()">
      <ul>
        @for (item of [].constructor(itemsCount); track $index) {
        <li>
          <div>
            Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquam, eaque deserunt veritatis iusto fugiat
            autem consequuntur.
          </div>
          <div>
            Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquam, eaque deserunt veritatis iusto fugiat
            autem consequuntur.
          </div>
        </li>
        }
      </ul>
    </wts-scroll>
  </div>
</div>

Example

Stackblitz Demo

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.01
1.0.83
1.0.71
1.0.61
1.0.51
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01
0.0.91
0.0.81
0.0.71
0.0.61
0.0.51
0.0.41
0.0.31
0.0.21
0.0.11

Package Sidebar

Install

npm i wts-scroll

Weekly Downloads

21

Version

2.0.0

License

MIT

Unpacked Size

112 kB

Total Files

14

Last publish

Collaborators

  • suman_mandal