@DomEvent(value="validated")
public static class HasClientValidation.ClientValidatedEvent
extends com.vaadin.flow.component.ComponentEvent<com.vaadin.flow.component.Component>
source| Constructor and Description |
|---|
ClientValidatedEvent(com.vaadin.flow.component.Component source,
boolean fromClient)
Creates a new event using the given source.
|
ClientValidatedEvent(com.vaadin.flow.component.Component source,
boolean fromClient,
boolean valid)
Creates a new event using the given source.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
isValid()
Returns true if the client-side validation succeeded and false
otherwise.
|
getSource, isFromClient, unregisterListenertoStringpublic ClientValidatedEvent(com.vaadin.flow.component.Component source,
boolean fromClient,
@EventData(value="event.detail.valid")
boolean valid)
source - the source component.fromClient - true if the event originated from the client
side, false otherwisevalid - whether the client-side validation succeeded.public ClientValidatedEvent(com.vaadin.flow.component.Component source,
boolean fromClient)
source - the source component.fromClient - true if the event originated from the client
side, false otherwisepublic Boolean isValid()
Note, this method will always return true if the event originated
from the server-side i.e. ComponentEvent.isFromClient() returns false.
Copyright © 2025. All rights reserved.