Class ResizeObserver
java.lang.Object
org.vaadin.firitin.util.ResizeObserver
A helper to detect and observe changes for the size of the given component.
Allows you for example to easily configure Grid columns for different
devices or swap component implementations based on the screen size/orientation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic ResizeObserverget()observe(com.vaadin.flow.component.Component component, ResizeObserver.SizeHandler listener) static ResizeObserverof(com.vaadin.flow.component.UI ui) withDebounceTimeout(int timeout)
-
Method Details
-
of
-
get
-
observe
public ResizeObserver observe(com.vaadin.flow.component.Component component, ResizeObserver.SizeHandler listener) -
withDebounceTimeout
-