setAnchorElement method

void setAnchorElement(
  1. Element root
)

Changes the element used as an anchor for menu-surface positioning logic. Should be used with conjunction with hoistMenuToBody().

Implementation

void setAnchorElement(Element root) => js.setAnchorElement(root);