0.4.0 • Published 9 years ago

react-mobiscroll v0.4.0

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

React-Mobiscroll

A simple wrapper of Mobiscroll for ReactJS.

Demo & Examples

Live demo: xicombd.github.io/react-mobiscroll

To build the examples locally, run:

npm install
gulp dev

Then open localhost:8000 in a browser.

Project Status

This project is still in development and bugs will arise very likely.

The project structure is based on react-select which uses react-component-gulp-tasks.

Installation

The easiest way to use React-Select is to install it from NPM and include it in your own React build process (using Browserify, etc).

npm install react-mobiscroll --save

Usage

  var Mobiscroll = require('react-mobiscroll');

  var ops = {
    display: 'inline',
    showInput: false,
    data: [
      { text: 'Paris', value: '1', group: 'Europe' },
      { text: 'New York',  value: '2',  group: 'America' }
    ]
  }

  <Mobiscroll preset="select" options={ops} elType="input"/>

License

MIT