0.4.0 • Published 7 years ago

react-text-field v0.4.0

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

react-numeric-field

React component that represents a basic input field that takes any value.

Installation

npm install react-text-field --save

Usage

var TextField = require('react-numeric-field');

functionToSetTextValue: function(value) {
    console.log("This is what I want to do with the value " + value);
}

render : function () {

    return (
        <div>
            <TextField name="My Field" setValue={this.functionToSetTextValue} />
        </div>
    )

}

Testing

If you want to test the component in an alreay working context, there is an app already set up for that.To get the app running, do the following :

npm install // this installs the required packages for the component
npm install -g gulp // to build the test app
gulp // launches the default task
npm install -g http-server // optional, if you want to use this server to view the app in a browser
http-server ./dist/ -p 4000 // to launch the server

Point your browser to http://127.0.0.1:4000 to see the sample app that uses the component.

0.4.0

7 years ago

0.3.9

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago