Here writes:
With regard to the CSS selectors or element discovery via Javascript, take into account that, by default, the ContextMenu is created as a child of the<
body
> element. This behavior is configurable via the appendTo setting.
but appendTo links to window appendTo documentation. ContextMenu documentation does not document appendTo configuration. TypeScript declaration file for interface ContextMenuOptions is also missing appendTo property.
Which documentation is wrong (Widgets or Javascript and TypeScript)? Quick look into source (2016.2.504) tells me that appendTo does not exists on ContextMenu.