C - Concrete configurator typepublic interface HasElementConfigurator<C extends HasElementConfigurator<C>>
HasElement type components.| Modifier and Type | Method and Description |
|---|---|
C |
withEventListener(String eventType,
com.vaadin.flow.dom.DomEventListener listener)
Adds an event listener for the given event type.
|
C |
withEventListener(String eventType,
com.vaadin.flow.dom.DomEventListener listener,
String filter)
Adds an event listener for the given event type and configure a filter.
|
C |
withThemeName(String themeName)
Adds a theme name to this component.
|
C withThemeName(String themeName)
themeName - the theme name to add, not nullC withEventListener(String eventType, com.vaadin.flow.dom.DomEventListener listener)
Event listeners are triggered in the order they are registered.
eventType - the type of event to listen to, not nulllistener - the listener to add, not nullC withEventListener(String eventType, com.vaadin.flow.dom.DomEventListener listener, String filter)
A filter is JavaScript expression that is used for filtering events to this listener. When an event is fired in
the browser, the expression is evaluated and an event is sent to the server only if the expression value is
true-ish according to JavaScript type coercion rules. The expression is evaluated in a context where
element refers to this element and event refers to the fired event. An expression might
be e.g. event.button === 0 to only forward events triggered by the primary mouse button.
Event listeners are triggered in the order they are registered.
eventType - the type of event to listen to, not nulllistener - the listener to add, not nullfilter - the JavaScript filter expressionCopyright © 2020 The Holon Platform. All rights reserved.