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
Modifier and TypeClassDescriptionstatic final record
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResizeObserver
get()
observe
(com.vaadin.flow.component.Component component, ResizeObserver.SizeHandler listener) static ResizeObserver
of
(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
-