Skip to main content

Variable: HAND_MENU_SNIPPET

const HAND_MENU_SNIPPET: "\n<div id=\"uix-window\" class=\"uix-hand-menu\">\n <div id=\"uix-content\" class=\"uix-hand-menu-stack\">\n <div id=\"menu-first\" class=\"uix-hand-menu-button\">FIRST</div>\n <div id=\"menu-second\" class=\"uix-hand-menu-button\">SECOND</div>\n </div>\n</div>\n";

Defined in: packages/webxr-uiextensions/src/chrome/markup.ts:53

Reference hand-menu markup: the same root and content ids, no title bar, a vertical stack of buttons that sizes to its content. Spawn it with dockMode: 'hand-locked' and it rides the hand; without a title bar there is nothing to drag, which is what a hand menu wants. Give each button an id and wire it to a WindowManager call.