You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -106,19 +108,18 @@ Example with only bottom borders:
106
108
107
109
#### Component options
108
110
109
-
<b>`codeLength: number`</b> - length of input code <br /><br />
110
-
<b>`isCodeHidden: boolean`</b> - when `true` inputted code chars will be shown as asterisks (points)<br /><br />
111
-
<b>`isNonDigitsCode: boolean`</b> - when `true` inputted code can contain any char and not only digits from 0 to 9.
112
-
If the input parameter <b>`code`</b> contains non digits chars and `isNonDigitsCode` is `false` the value will be ignored<br /><br />
113
-
<b>`isPrevFocusableAfterClearing: boolean`</b> - when `true` after the input value deletion the caret will be moved
114
-
to the previous input immediately. If `false` then after the input value deletion the caret will
115
-
stay on the current input and be moved to the previous input only if the current input is empty<br /><br />
116
-
<b>`inputType: string`</b> - type of the input DOM elements like `<input [type]="inputType"/>` default '`tel'`<br /><br />
117
-
<b>`code: string | number`</b> - the input code value for the component. If the parameter
118
-
contains non digits chars and `isNonDigitsCode` is `false` the value will be <b>ignored</b> <br /><br />
111
+
| Property | Type | Default | Description |
112
+
|----------|:-------:|:-----:|----------|
113
+
| <b>`codeLength`</b> | number | 4 | Length of input code |
114
+
| <b>`isCodeHidden`</b> | boolean | false | When `true` inputted code chars will be shown as asterisks (points) |
115
+
| <b>`isNonDigitsCode`</b> | boolean | false | When `true` inputted code can contain any char and not only digits from 0 to 9. If the input parameter <b>`code`</b> contains non digits chars and `isNonDigitsCode` is `false` the value will be ignored |
116
+
| <b>`isPrevFocusableAfterClearing`</b> | boolean | true | When `true` after the input value deletion the caret will be moved to the previous input immediately. If `false` then after the input value deletion the caret will stay on the current input and be moved to the previous input only if the current input is empty |
117
+
| <b>`inputType`</b> | string | tel | Type of the input DOM elements like `<input [type]="inputType"/>` default '`tel'`|
118
+
| <b>`code`</b> | string / number | - | The input code value for the component. If the parameter contains non digits chars and `isNonDigitsCode` is `false` the value will be <b>ignored |
119
119
120
120
#### Events
121
121
122
-
`codeChanged` - will be called every time when a user changed the code <br />
123
-
`codeCompleted` - will be called only if a user entered full code
124
-
122
+
| Event | Description |
123
+
|----------|--------------------|
124
+
|`codeChanged`| Will be called every time when a user changed the code |
125
+
|`codeCompleted`| Will be called only if a user entered full code |
@@ -106,19 +108,18 @@ Example with only bottom borders:
106
108
107
109
#### Component options
108
110
109
-
<b>`codeLength: number`</b> - length of input code <br /><br />
110
-
<b>`isCodeHidden: boolean`</b> - when `true` inputted code chars will be shown as asterisks (points)<br /><br />
111
-
<b>`isNonDigitsCode: boolean`</b> - when `true` inputted code can contain any char and not only digits from 0 to 9.
112
-
If the input parameter <b>`code`</b> contains non digits chars and `isNonDigitsCode` is `false` the value will be ignored<br /><br />
113
-
<b>`isPrevFocusableAfterClearing: boolean`</b> - when `true` after the input value deletion the caret will be moved
114
-
to the previous input immediately. If `false` then after the input value deletion the caret will
115
-
stay on the current input and be moved to the previous input only if the current input is empty<br /><br />
116
-
<b>`inputType: string`</b> - type of the input DOM elements like `<input [type]="inputType"/>` default '`tel'`<br /><br />
117
-
<b>`code: string | number`</b> - the input code value for the component. If the parameter
118
-
contains non digits chars and `isNonDigitsCode` is `false` the value will be <b>ignored</b> <br /><br />
111
+
| Property | Type | Default | Description |
112
+
|----------|:-------:|:-----:|----------|
113
+
| <b>`codeLength`</b> | number | 4 | Length of input code |
114
+
| <b>`isCodeHidden`</b> | boolean | false | When `true` inputted code chars will be shown as asterisks (points) |
115
+
| <b>`isNonDigitsCode`</b> | boolean | false | When `true` inputted code can contain any char and not only digits from 0 to 9. If the input parameter <b>`code`</b> contains non digits chars and `isNonDigitsCode` is `false` the value will be ignored |
116
+
| <b>`isPrevFocusableAfterClearing`</b> | boolean | true | When `true` after the input value deletion the caret will be moved to the previous input immediately. If `false` then after the input value deletion the caret will stay on the current input and be moved to the previous input only if the current input is empty |
117
+
| <b>`inputType`</b> | string | tel | Type of the input DOM elements like `<input [type]="inputType"/>` default '`tel'`|
118
+
| <b>`code`</b> | string / number | - | The input code value for the component. If the parameter contains non digits chars and `isNonDigitsCode` is `false` the value will be <b>ignored |
119
119
120
120
#### Events
121
121
122
-
`codeChanged` - will be called every time when a user changed the code <br />
123
-
`codeCompleted` - will be called only if a user entered full code
124
-
122
+
| Event | Description |
123
+
|----------|--------------------|
124
+
|`codeChanged`| Will be called every time when a user changed the code |
125
+
|`codeCompleted`| Will be called only if a user entered full code |
0 commit comments