Class OtpCompleteEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<OtpField>
com.flowingcode.vaadin.addons.otpfield.OtpCompleteEvent
All Implemented Interfaces:
Serializable

@DomEvent("otp-complete") public class OtpCompleteEvent extends ComponentEvent<OtpField>
Fired when the code entered in an OtpField becomes complete, that is, when its length reaches OtpField.getLength().

The event is fired regardless of the ValueChangeMode of the field, and it is fired again if the code becomes incomplete and then complete once more. It is not fired for a programmatic OtpField.setValue(String).

Since:
1.0.0
Author:
Flowing Code
See Also:
  • Constructor Details

    • OtpCompleteEvent

      public OtpCompleteEvent(OtpField source, boolean fromClient, @EventData("event.detail.value") String value)
      Creates a new complete event.
      Parameters:
      source - the field that fired the event
      fromClient - true if the event originated from the client side
      value - the complete code