Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gpietro authored Jul 3, 2019
1 parent 92bd579 commit 7471710
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,13 @@ React-NumPad is built based on a "main" component (NumPad.js). Following the hig
| `value` | `string` or `number` | none | value (default) for the input field. |
| `sync` | `boolean` | false | if true, callbacks calls while typing if the input is valid |
| `inline` | `boolean` | false | show the component inline always visible without input field. |

> **Version > 4.0.0**: is possible to override the following component's functions
| Property | Type | Default | Description |
| :---------------------- | :--------- | :------ | :--------------------------------------- |
| `validation` | `function` |   | Validates the input value |
| `(Number) keyValidator` | `function` |   | Validates the enabled keys while typing  |
| `keyValidator` | `function` |   | Validates the enabled keys while typing. **Only for Number**  |
| `displayRule` | `function` |   | Format the output value  |

### NumPad.Number

Input field for numeric value.

> **Version > 4.0.0**: the components PositiveNumber, IntegerNumber, PositiveIntegerNumber are replaced with the props **decimal** and **negative**.
| Property | Type | Default | Description |
| :--------- | :-------------------- | :------- | :---------------------------------------------------------------------------- |
| `decimal` | `boolean` or `number` | **true** | True allows decimal numbers or is possible to specify the number of decimals. |
Expand All @@ -79,8 +71,6 @@ Input field for numeric value.
Input field for date and time format.
> **Version > 4.0.0**: the input layout is now based on the date format, date time format or only time format property. Components Date and Time have been removed.
| Property | Type | Default | Description |
| :----------- | :------- | :--------------- | :--------------------------------------------------------------------------------------------- |
| `dateFormat` | `string` | **'DD.MM.YYYY'** | Specify the date time format based on moment.js. Ex: 'DD.MM.YYYY', 'HH:mm', 'YYYY-MM-DD HH:mm' |
Expand Down Expand Up @@ -240,4 +230,4 @@ See our [CONTRIBUTING.md](https://github.com/gpietro/react-numpad/blob/master/CO
## License
MIT Licensed. Copyright (c) Pietro Ghezzi 2017-2018.
MIT Licensed. Copyright (c) Pietro Ghezzi 2017-2019.

0 comments on commit 7471710

Please sign in to comment.