Package com.vaadin.flow.component
Interface ClickNotifier.ClickFiltersJs
- All Superinterfaces:
Serializable
- Enclosing interface:
ClickNotifier<T extends Component>
The click count filters of
ClickNotifier, as JavaScript snippets
for JsSnippets.of(Class), so that the browser does not compile
them from a string.
For internal use only. May be renamed or removed in a future release.
-
Method Summary
Modifier and TypeMethodDescriptionisClickCountBetween(int min, int max) Accepts a click whose click count, thedetailof the event, is within the given range.
-
Method Details
-
isClickCountBetween
@JsExpression("return event.detail >= $0 && event.detail <= $1;") DomEventFilter isClickCountBetween(int min, int max) Accepts a click whose click count, thedetailof the event, is within the given range.- Parameters:
min- the lowest click count to acceptmax- the highest click count to accept- Returns:
- the filter, not
null
-