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

https://github.com/poordeveloper/ion-sticky

A lightweight Angular directive for Ionic framework to have sticky list headers
https://github.com/poordeveloper/ion-sticky

Last synced: 12 months ago
JSON representation

A lightweight Angular directive for Ionic framework to have sticky list headers

Awesome Lists containing this project

README

          

# ion-sticky
***Super simple to use***

Just add ion-sticky to ion-content, it will detect dividers and make the active one sticky.

If you are using collection-repeat, please refer to this gist.

[https://gist.github.com/Poordeveloper/e6a1714ea399f95c779f](https://gist.github.com/Poordeveloper/e6a1714ea399f95c779f)

## Demo

[http://codepen.io/Poordeveloper/pen/BNpxrm](http://codepen.io/Poordeveloper/pen/BNpxrm)
## Install

```bash
bower install ion-sticky --save
```

## Usage

```javascript
angular.module('ion-sticky-demo', ['ion-sticky']);
```

```html


A
A1
A2
...
B
....

```

Using custom style class for sticky header (default uses `assertive`):

```html


A
A1
A2
...
B
....

```