1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Functions
  6. DiviAreaItem.attach()

This is an internal method that should not be used in third-party scripts.

Attach the current Area to the DOM tree (display it).

Inline Areas are attached to the inline-hook (see DiviAreaItem.findHook()), while other Areas are attached to the Areas container (see DiviAreaItem.setData() for attribute container).

After the Area was attached, a resize-observer is activated to monitor its size. Also, the Area is positioned on the screen.


no Params


A reference to the current DiviAreaitem for chaining.


No notes

Was this article helpful?

Related Articles