Package com.vaadin.flow.component.shared
Interface HasClientValidation
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DatePicker
,DateTimePicker
,TextField
,TimePicker
public interface HasClientValidation extends Serializable
Mixin interface for subscribing to the client-side `validated` event from a component.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
HasClientValidation.ClientValidatedEvent
An event fired by the web component whenever it is validated on the client-side.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Registration
addClientValidatedEventListener(ComponentEventListener<HasClientValidation.ClientValidatedEvent> listener)
Adds a listener for thevalidated
event fired by the web component whenever it is validated on the client-side.
-
-
-
Method Detail
-
addClientValidatedEventListener
default Registration addClientValidatedEventListener(ComponentEventListener<HasClientValidation.ClientValidatedEvent> listener)
Adds a listener for thevalidated
event fired by the web component whenever it is validated on the client-side.- Parameters:
listener
- the listener, not null.- Returns:
- a
Registration
for removing the event listener.
-
-