angular-perfect-scrollbar-2

A wrapper for perfect-scrollbar using its new CommonJS API and injecting CSS automatically.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
angular-perfect-scrollbar-2
1.2.57 years ago9 years agoMinified + gzip package size for angular-perfect-scrollbar-2 in KB

Readme

angular-perfect-scrollbar-2
Another wrapper around perfect-scrollbar.

Motivation

  • No need to include CSS from node_modules, it is injected automatically
(which may cause problems if you need significantly changed version of it, but handy otherwise). -- you just pass a configuration object, not individual properties.
  • A MutationObserver, if supported, is used to update a scrollbar.
  • Scrollbar can be updated manually when necessary.

Usage

  1. npm install angular-perfect-scrollbar-2
  2. In app code:
``` angular.module('app', require('angular-perfect-scrollbar-2') ) `` or replace require() by 'angular-perfect-scrollbar-2' and put appropriate