Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/geoffreybauduin/angular-scroll-pane

AngularJS directive to use jScrollPane https://github.com/vitch/jScrollPane
https://github.com/geoffreybauduin/angular-scroll-pane

angular jscrollpane scrolling

Last synced: about 9 hours ago
JSON representation

AngularJS directive to use jScrollPane https://github.com/vitch/jScrollPane

Awesome Lists containing this project

README

        

angular-scroll-pane
===================

[![Build Status](https://travis-ci.org/lght/angular-scroll-pane.svg?branch=master)](https://travis-ci.org/lght/angular-scroll-pane)

AngularJS directive to use jScrollPane https://github.com/vitch/jScrollPane

## How to install

- With bower
- `bower install --save angular-scroll-pane`
- Manually
- `dist/angular-jscrollpane.min.js`

## What to include

Make sure you are including `jQuery`, `Angular` and `jScrollPane` along with `angular-scroll-pane`.

## How to use this module

```
angular.module("app", ['ngJScrollPane']);
angular.module("app").controller("MyCtrl", function () {
$scope.paneConfig = {
verticalDragMinHeight: 40
}
});




My content needing a scroll pane


```

**Don't forget to specify an id (or an attribute 'scroll-name') for your scroll pane, otherwise it won't be working**

### Always scroll to top

If need just specify atribute scroll-always-top. For example, good thing for custom autocomplete list.

```



{{item}}


```

### Reinitialize the pane

If you want to reinitialize the pane, you can broadcast `reinit-pane` with the ID of the DOM Element.

## Contributing

If you wish to contribute, fork this repository.

`grunt build` builds the module.

## License

The MIT License (MIT)

Copyright (c) 2015 Geoffrey Bauduin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.