rmc-input-number

WebJar for rmc-input-number

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

rmc-input-number
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

rmc-input-number
WebJar for rmc-input-number
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/react-component/m-input-number

Download rmc-input-number

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/rmc-input-number/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>rmc-input-number</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/rmc-input-number/
implementation 'org.webjars.npm:rmc-input-number:1.0.5'
// https://jarcasting.com/artifacts/org.webjars.npm/rmc-input-number/
implementation ("org.webjars.npm:rmc-input-number:1.0.5")
'org.webjars.npm:rmc-input-number:jar:1.0.5'
<dependency org="org.webjars.npm" name="rmc-input-number" rev="1.0.5">
  <artifact name="rmc-input-number" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='rmc-input-number', version='1.0.5')
)
libraryDependencies += "org.webjars.npm" % "rmc-input-number" % "1.0.5"
[org.webjars.npm/rmc-input-number "1.0.5"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : babel-runtime jar [6,7)
org.webjars.npm : classnames jar [2.2.0,3)
org.webjars.npm » rmc-feedback jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

rmc-input-number


input number ui component for react (web & react-native)

NPM version build status Test coverage gemnasium deps node version npm download

Screenshots

  • web:

  • react-native:

install

rmc-input-number

Usage

var InputNumber = require('rmc-input-number');
var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(<InputNumber defaultValue={19}/>, container);

Development

npm install
npm run watch-tsc
npm start

Example

http://127.0.0.1:8000/examples/

online example: http://react-component.github.io/m-input-number/examples/

react-native

npm run watch-tsc
npm run rn-init
react-native run-ios

API

props

name type default description
min Number Specifies the minimum value
max Number Specifies the maximum value
step Number or String 1 Specifies the legal number intervals
precision Number Specifies the precision length of value
disabled Boolean false Specifies that an InputNumber should be disabled
focusOnUpDown Boolean true whether focus input when click up or down button
autoFocus Boolean false Specifies that an InputNumber should automatically get focus when the page loads
readOnly Boolean false Specifies that an InputNumber is read only
value Number Specifies the value of an InputNumber
defaultValue Number Specifies the defaultValue of an InputNumber
onChange Function Called when value of an InputNumber changed
style Object root style. such as {width:100}
styles ReactNative StyleSheet component's stylesheet, can use lib/styles
upStyle Object up step wrap style. `react native only`
downStyle Object down step style. `react native only`
inputStyle Object input style. `react native only`
upHandler React.Node custom the up step element
downHandler React.Node custom the down step element
formatter (value: number|string): displayValue: string Specifies the format of the value presented
parser (displayValue: string) => value: number `input => input.replace(/[^\w\.-]*/g, '')` Specifies the value extracted from formatter

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rmc-input-number is released under the MIT license.

org.webjars.npm

react-component

React components foundation of http://ant.design

Versions

Version
1.0.5