OTPInputComponent
Represents the Kendo UI OTP Input component for Angular.
Use the OTP Input to enter one-time passwords or verification codes.
<kendo-otpinput type="number" [(ngModel)]="otpValue"></kendo-otpinput>
Selector
kendo-otpinput
Export Name
Accessible in templates as #kendoOTPInputInstance="kendoOTPInput"
Inputs
Name | Type | Default | Description |
---|---|---|---|
disabled |
|
|
When |
fillMode |
|
|
Sets the background and border styles of the OTP Input. |
groupLength |
|
Sets the length of the groups. If you set a number, all groups have the same length. If you set an array, each group can have a different length. | |
inputAttributes |
|
Sets the HTML attributes of the inner input element. You cannot change attributes that are required for the component to work. | |
length |
|
|
Sets the total number of input fields. |
placeholder |
|
Sets the placeholder for the input fields. | |
readonly |
|
|
When |
rounded |
|
|
Sets the border radius of the OTP Input. |
separator |
|
Sets the separator between groups of input fields. You can use this only when | |
size |
|
|
Sets the padding of the input fields. |
spacing |
|
|
Sets whether the input fields are separate or adjacent. |
type |
|
|
Sets the input type. |
value |
|
Sets the value of the component. Unfilled input fields are represented with а space. |
Events
Name | Type | Description |
---|---|---|
blur |
|
Fires when the user blurs the OTP Input. |
focus |
|
Fires when the user focuses the OTP Input. |
valueChange |
|
Fires when the user changes the value. This event does not fire when you change the value programmatically or through form bindings. |
Methods
blur |
---|
Blurs the OTP Input. |
focus | ||||||
---|---|---|---|---|---|---|
Focuses the OTP Input at the specified index provided as an argument. | ||||||
|