{"id":"ui--CreateYuiFocusScope","name":"CreateYuiFocusScope","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiFocusScope(text id, text rootNodeId, bool wrap, bool modal) returns yuiFocusScope","description":"Create yui focus scope from the supplied values.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"id","type":"text","description":"Supply id as text."},{"name":"rootNodeId","type":"text","description":"Supply root node id as text."},{"name":"wrap","type":"bool","description":"Supply wrap as bool."},{"name":"modal","type":"bool","description":"Supply modal as bool."}],"returns":"yuiFocusScope","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/interaction-focus.yh","line":399,"sha256":"93a7821db0efcb10676701855cad400a9b00d3bbeee4cc79518df0984d173f6f"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use CreateYuiFocusScope","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\ntext id = \"id\"\ntext rootNodeId = \"root Node Id\"\nbool wrap = true\nbool modal = true\nyuiFocusScope result = CreateYuiFocusScope(id, rootNodeId, wrap, modal)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuifocusscope\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"f1129332483d551664371dffdc3a23d705fd0d779edd1f0eeaee733da886f2a6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiFocusScope","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiFocusScope.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiFocusScope.md"}
