New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ember-active-scroll-list

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-active-scroll-list

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

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

ember-active-scroll-list

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

###Demo

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

Keywords

ember-addon

FAQs

Package last updated on 29 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts