MenuAnchor
fun <W : Widget> MenuAnchor(anchor: W, position: Position = Position.RELATIVE, initMenu: SimplePanel.() -> MdMenu): MenuAnchor<W>(source)
Factory for obtaining an instance of MenuAnchor.
The returned component is basically a Component that assign an id to anchor and affect that id to the MdMenu computed by initMenu.
It also set a click listener on anchor that toggle the MdMenu visibility.
This API is provided as a convenience for creating menu.