|
9 | 9 |
|
10 | 10 | 
|
11 | 11 |
|
| 12 | +## Supported platforms |
| 13 | + |
| 14 | +<b>Angular</b> 7, 8, 9 +<br /> |
| 15 | +<b>Ionic</b> 4, 5 +<br /> |
| 16 | +Mobile browsers and WebViews on: <b>Android and iOS</b><br /> |
| 17 | +Desktop browsers: <b>Chrome, Firefox, Safari, Edge v.79 +</b><br /> |
| 18 | +Other browsers: <b>Edge v.41 - 44</b> (without code hidden feature) |
| 19 | + |
12 | 20 | ## Installation
|
13 | 21 |
|
14 | 22 | $ npm install --save angular-code-input
|
@@ -97,9 +105,16 @@ Example with only bottom borders:
|
97 | 105 |
|
98 | 106 | #### Component options
|
99 | 107 |
|
100 |
| -`codeLength: number` - length of input code <br /> |
101 |
| -`isCodeHidden: boolean` - when `true` inputted code chars will be shown as asterisks (points)<br /> |
102 |
| -`isNonDigitsCode: boolean` - when `true` inputted code can contain any char and not only digits from 0 to 9 <br /> |
| 108 | +<b>`codeLength: number`</b> - length of input code <br /> |
| 109 | +<b>`isCodeHidden: boolean`</b> - when `true` inputted code chars will be shown as asterisks (points)<br /> |
| 110 | +<b>`isNonDigitsCode: boolean`</b> - when `true` inputted code can contain any char and not only digits from 0 to 9. |
| 111 | +If the input parameter <b>`code`</b> contains non digits chars and `isNonDigitsCode` is `false` the value will be ignored<br /> |
| 112 | +<b>`isPrevFocusableAfterClearing: boolean`</b> - when `true` after the input value deletion the caret will be moved |
| 113 | +to the previous input immediately. If `false` then after the input value deletion the caret will |
| 114 | +stay on the current input and be moved to the previous input only if the current input is empty<br /> |
| 115 | +<b>`inputType: string`</b> - type of the input DOM elements like `<input [type]="inputType"/>` default '`tel'`<br /> |
| 116 | +<b>`code: string | number`</b> - the input code value for the component. If the parameter |
| 117 | +contains non digits chars and `isNonDigitsCode` is `false` the value will be <b>ignored</b> <br /> |
103 | 118 |
|
104 | 119 | #### Events
|
105 | 120 |
|
|
0 commit comments