GitXplorerGitXplorer
b

ember-active-scroll-list

public
2 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
dc51d9e55668e99be4216c42d9db9d64f5f55a28

Update README.md

bbekzod committed 8 years ago
Unverified
ed2ed0e872020ef7bc98972b8116a56b1c27336c

Update README.md

bbekzod committed 8 years ago
Unverified
03c68ba691f463bab6a37cf5657201bc199e0b47

Released v0.2.2

bbekzod committed 9 years ago
Unverified
0073e424c22421babe61c2f9dc47b6680464f311

bower update

bbekzod committed 9 years ago
Unverified
05d5c881af87c0342c47d5d7152216be65c517e2

fixed demo url

bbekzod committed 9 years ago
Unverified
bd8563c7b49ebeb6241bcce8a71e8ddce95701ea

Released v0.2.1

bbekzod committed 9 years ago

README

The README file for this repository.

ember-active-scroll-list

Ember Addon helps to keep active item of list visible in viewport

Usage

{{#active-scroll-list tolerance=0 scrollTimeout=2000 activeIndex=activeIndex class='list'}}
  {{#each items as |item index|}}
    <div class="item {{if (eq index activeIndex) 'active'}}">{{item}}</div>
  {{/each}}
{{/active-scroll-list}}

can be also be extended as mixin

import Ember from 'ember';
import ActiveScrollListMixin from 'ember-active-scroll-list';

export default Ember.Component.extend(ActiveScrollListMixin, {
  ...
});

Options

  • activeIndex Index of element which needs to be visible on the list

  • tolerance How much top and bottom edges should be offset when determining overflow

  • scrollTimeout Timeout for when autoscroll is activated

Installation

You can install either with ember install:

  ember install ember-active-scroll-list