2.0.10 • Published 9 years ago

apeman-react-scroll v2.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

apeman-react-scroll

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for scroll components.

Installation

$ npm install apeman-react-scroll --save

Demo

Live demo is hosted on GitHub Pages.

Usage

'use strict'

import React from 'react'
import {ApScroll, ApScrollStyle} from 'apeman-react-scroll'

const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApScrollStyle />
        <ApScroll>
          <div>
            Scrollable content
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            <br/>
            Hey, there
          </div>
        </ApScroll>
      </div>
    )
  }
})

Components

ApScrollStyle

Props

NameTypeDefaultDescription
styleobject{}
highlightColorstringApStyle.DEFAULT_HIGHLIGHT_COLOR
backgroundColorApStyle.DEFAULT_BACKGROUND_COLOR

ApScroll

Props

NameTypeDefaultDescription
directionenum'y'
showScrollbarsboolfalse
disableMouseWheelboolfalse
iScrollReffunc(e) => undefined
onScrollCancelfunc(e) => undefined
onScrollStartfunc(e) => undefined
onScrollfunc(e) => undefined
onScrollEndfunc(e) => undefined
onFlickfunc(e) => undefined
id`ap-scroll-${uuid.v4()}`

License

This software is released under the MIT License.

Links

2.0.10

9 years ago

2.0.9

9 years ago

2.0.8

9 years ago

2.0.7

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago