# ionic-scroller

> Angular and IonicFramework extension to scroll-top, -bottom, -to, -anchor

Latest version **0.0.4** (published 2015-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install ionic-scroller
pnpm add ionic-scroller
yarn add ionic-scroller
bun add ionic-scroller
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2015-08-04 |
| First published | 2015-07-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Bengt Weiße |
| Maintainers | killercodemonkey |
| Keywords | scroll, scrolling, scroller, ionic framework, ionic, angular, directive |

## Links

- npm: https://www.npmjs.com/package/ionic-scroller
- Repository: https://github.com/KillerCodeMonkey/ionicScroller
- Issues: https://github.com/KillerCodeMonkey/ionicScroller/issues
- npm.io page: https://npm.io/package/ionic-scroller

## Recent versions

- 0.0.4 (latest) — 2015-08-04
- 0.0.3 — 2015-07-28

## README

# ionicScroller

ionicScroller is an [Angular.js](http://angularjs.org/) and [Ionic Framework](http://ionicframework.com/) extension for simple scroll-top, -bottom, -to functionality.

Installation
============
- run `bower install ionic-scroller`
- or run `npm install ionic-scroller`
- or download zip from release page: https://github.com/KillerCodeMonkey/ionicScroller/releases

Usage
=====
- load ionic, ionic-scroller scripts in your index.html
- add dependency to your app module `var myAppModule = angular.module('ionicScrollerTest', ['ionic', 'ionicScroller']);`
- use directives in your html --> ion-scroller-top, ion-scroller-bottom, ion-scroller-to, ion-scroller-anchor
- `<ion-scroller-top css-class="button button-assertive" offset="20" text="UP!" scroll-delegate="delegateHandle" animate="true"></ion-scroller-top>`
- the generated buttons are hidden on shown with ng-show/ng-hide, so you can animate showing and hiding of the buttons through css as well ;)
- add class with absolute position to move button over your list ;)

Configuration
=============
### ion-scroller-top and ion-scroller-bottom
- change button text: `text="YOUR TEXT OR EMPTY"` (default: Top / Bottom)
- animate scrolling: `animate="true"` (default false)
- auto-hide at offset: `offset="10"` (ion-scroller-bottom: hides button if scroll position top >= offset, default: -1; ion-scroller-top: hides button if scroll position top <= offset, default: -1; offset="-1": does not hide the button)
- connect to delegateHandle: `scroll-delegate="delegateHandle"` (default, the main delegateHandle like ion-content)
- style through class or ng-class expression: `css-class="button button-assertive"` (wraps up in ng-class, default: 'button button-dark')

### ion-scroller-to
- change button text: `text="YOUR TEXT OR EMPTY"` (default: GoTo)
- animate scrolling: `animate="true"` (default false)
- left, top: `left="10" top="50"` (target scroll position, required)
- connect to delegateHandle: `scroll-delegate="delegateHandle"` (default, the main delegateHandle like ion-content)
- style through class or ng-class expression: `css-class="button button-assertive"` (wraps up in ng-class, default: 'button button-dark')

### ion-scroller-anchor
- change button text: `text="YOUR TEXT OR EMPTY"` (default: GoTo)
- animate scrolling: `animate="true"` (default false)
- anchor: `anchor="domNodeId"` (target node-id, required)
- connect to delegateHandle: `scroll-delegate="delegateHandle"` (default, the main delegateHandle like ion-content)
- style through class or ng-class expression: `css-class="button button-assertive"` (wraps up in ng-class, default: 'button button-dark')

---
_Source: https://npm.io/package/ionic-scroller · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
