0.9.10 • Published 7 years ago

numberinput v0.9.10

Weekly downloads
12
License
MIT
Repository
github
Last release
7 years ago

NumberInput

Author: yaoang

A mobile number input component for react project

How to use

First, you must install this component

npm install --save inputnumber

secondly import in your page

import NumberInput from 'numberinput'

and then use in your page

<NumberInput 
    value={value} 
    onChange={this.handleChange}
    className={yourClassName}
    prefixCls={yourPrefixCls}
    defaultStyle={true}
    isCycle={false}
    type="number"
    min={0}
    max={100}
    step={1} />

Parameters

  • className: default value is '${prefixCls}_numberInput'
  • prefixCls: default value is 'fy'
  • defaultStyle: use the default style file given by author, default value is 'true'
  • isCycle: when touch the top or the bottom, it will start from the opposite, default value is 'false'
  • type: values in {"number", "time"}, default value is 'number'
handleChange(evt) {
    /* Your change event here */
    const value = evt.target.value;
}
0.9.10

7 years ago

0.9.9

7 years ago

0.9.8

7 years ago

0.9.7

7 years ago

0.9.6

7 years ago

0.9.5

7 years ago

0.9.4

7 years ago

0.9.3

7 years ago

0.9.2

7 years ago

0.9.1

7 years ago

0.9.0

7 years ago