Interface RefConsumer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@JsFunction @FunctionalInterface public interface RefConsumer
Method to pass an element or component instance back from the renderer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Object reference)
    Passes the reference to the component instance or element.
  • Method Details

    • accept

      void accept(@Nullable Object reference)
      Passes the reference to the component instance or element. The reference is nonnull when the element has been attached to the DOM and null when the reference has been detached from the DOM.
      Parameters:
      reference - the reference.