createMenuBarController function

Module @runic-artifex/views in @runic-artifex/views 0.23.0

function createMenuBarController(options?: MenuBarControllerOptions): MenuBarController & Disposable;

Follows the host's in-page menu bar: the declared DesktopHost.MenuBar with the commands' availability, for the application's own menubar component. Render a bar while current.placement is "page", run a chosen item with invoke, and map onRequest to the component (focus its first trigger, or open a menu). The controller keeps following the host across reconnects until it is disposed; a using declaration disposes it where the engine has Symbol.dispose.