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.
  • Constructor Details

  • Method Details

    • disconnect

      public void disconnect()
      Disconnects the resize observer.
    • observe

      public void observe(elemental2.dom.Element element)
      Starts observation for an element.
      Parameters:
      element - the element to observer
    • unobserve

      public void unobserve(elemental2.dom.Element element)
      Stops observation for an element.
      Parameters:
      element - the element for which to stop observation