Skip to content

Commit 7471710

Browse files
authored
Update README.md
1 parent 92bd579 commit 7471710

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,13 @@ React-NumPad is built based on a "main" component (NumPad.js). Following the hig
4545
| `value` | `string` or `number` | none | value (default) for the input field. |
4646
| `sync` | `boolean` | false | if true, callbacks calls while typing if the input is valid |
4747
| `inline` | `boolean` | false | show the component inline always visible without input field. |
48-
49-
> **Version > 4.0.0**: is possible to override the following component's functions
50-
51-
| Property | Type | Default | Description |
52-
| :---------------------- | :--------- | :------ | :--------------------------------------- |
53-
| `validation` | `function` |   | Validates the input value |
54-
| `(Number) keyValidator` | `function` |   | Validates the enabled keys while typing  |
48+
| `keyValidator` | `function` |   | Validates the enabled keys while typing. **Only for Number**  |
5549
| `displayRule` | `function` |   | Format the output value  |
5650

5751
### NumPad.Number
5852

5953
Input field for numeric value.
6054

61-
> **Version > 4.0.0**: the components PositiveNumber, IntegerNumber, PositiveIntegerNumber are replaced with the props **decimal** and **negative**.
62-
6355
| Property | Type | Default | Description |
6456
| :--------- | :-------------------- | :------- | :---------------------------------------------------------------------------- |
6557
| `decimal` | `boolean` or `number` | **true** | True allows decimal numbers or is possible to specify the number of decimals. |
@@ -79,8 +71,6 @@ Input field for numeric value.
7971
8072
Input field for date and time format.
8173
82-
> **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.
83-
8474
| Property | Type | Default | Description |
8575
| :----------- | :------- | :--------------- | :--------------------------------------------------------------------------------------------- |
8676
| `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' |
@@ -240,4 +230,4 @@ See our [CONTRIBUTING.md](https://github.com/gpietro/react-numpad/blob/master/CO
240230
241231
## License
242232
243-
MIT Licensed. Copyright (c) Pietro Ghezzi 2017-2018.
233+
MIT Licensed. Copyright (c) Pietro Ghezzi 2017-2019.

0 commit comments

Comments
 (0)