Package org.vaadin.firitin.util
Class ResizeObserver
java.lang.Object
org.vaadin.firitin.util.ResizeObserver
Deprecated.
Consider this an early draft that may change unexpectedly. Feedback
for the helper highly appreciated, hoping to get similar tooling to core
soon to replace resize listener in Page.
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
Deprecated.static interface
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResizeObserver
get()
Deprecated.observe
(com.vaadin.flow.component.Component component, ResizeObserver.SizeHandler listener) Deprecated.static ResizeObserver
of
(com.vaadin.flow.component.UI ui) Deprecated.withDebounceTimeout
(int timeout) Deprecated.
-
Method Details
-
of
Deprecated. -
get
Deprecated. -
observe
public ResizeObserver observe(com.vaadin.flow.component.Component component, ResizeObserver.SizeHandler listener) Deprecated. -
withDebounceTimeout
Deprecated.
-