2.0.10 • Published 8 years ago

apeman-react-scroll v2.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
8 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

8 years ago

2.0.9

8 years ago

2.0.8

8 years ago

2.0.7

8 years ago

2.0.6

8 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago