Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

react-widget-scrollview

1.0.0 • Public • Published

scrollview

Install

npm install --save react-widget-scrollview

Options

static propTypes = {
        prefixCls: PropTypes.string,
        className: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
        scrollViewBodyCls: PropTypes.string,
        scrollViewBodyStyle: PropTypes.object,
        overflow: PropTypes.oneOfType(['hidden', 'auto', 'scroll', 'visible']),
        overflowX: PropTypes.oneOfType(['hidden', 'auto', 'scroll', 'visible']),
        overflowY: PropTypes.oneOfType(['hidden', 'auto', 'scroll', 'visible']),
        wheelDir: PropTypes.oneOfType(['x', 'y']),
        thumbCls: PropTypes.string,
        trackCls: PropTypes.string,
        scrollBarSize: PropTypes.number,
        thumbSize: PropTypes.number,
        thumbMinSize: PropTypes.number,
        thumbMaxSize: PropTypes.number,
        showTrack: PropTypes.bool,
        scrollBarOffsetTopOrLeft: PropTypes.number,
        scrollBarOffsetRightOrBottom: PropTypes.number,
        wheelStep: PropTypes.number,
        enablePreventDefaultOnEnd: PropTypes.bool,
        onScroll: PropTypes.func,
        onHScrollEnd: PropTypes.func,
        onVScrollEnd: PropTypes.func,
        onHScrollStart: PropTypes.func,
        onVScrollStart: PropTypes.func,
    };

    static defaultProps = {
        prefixCls: 'rw-scrollview',
        className: '',
        scrollViewBodyCls: '',
        overflow: 'auto',
        overflowX: 'auto',
        overflowY: 'auto',
        scrollBarSize: 7,
        scrollBarOffsetTopOrLeft: 2,
        scrollBarOffsetRightOrBottom: 0,
        wheelDir: 'y',
        thumbCls: '',
        trackCls: '',
        thumbSize: null,
        thumbMinSize: 6,
        thumbMaxSize: 999999,
        showTrack: true,
        wheelStep: 100,
        enablePreventDefaultOnEnd: true,
        onScroll: null,
        onHScrollEnd: null,
        onVScrollEnd: null,
        onHScrollStart: null,
        onVScrollStart: null,
    };

install

npm i react-widget-scrollview

Downloadsweekly downloads

4

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability