setMenuSurfaceAnchorElement method

void setMenuSurfaceAnchorElement(
  1. Element root
)

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

Implementation

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