Package org.opencms.gwt.client.js
Class ResizeObserver
java.lang.Object
org.opencms.gwt.client.js.ResizeObserver
@JsType(isNative=true,
name="ResizeObserver",
namespace="<window>")
public class ResizeObserver
extends Object
JS interop class for native ResizeObserver.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
JS Callback for resize observers. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
ResizeObserver
Creates a new instance.- Parameters:
callback
- the callback to call when resizes happen
-
-
Method Details
-
disconnect
Disconnects the resize observer. -
observe
Starts observation for an element.- Parameters:
element
- the element to observer
-
unobserve
Stops observation for an element.- Parameters:
element
- the element for which to stop observation
-