{"id":"ui--yuiBlock","name":"yuiBlock","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiBlock","description":"A yui block record carrying id, parent, component, label, content, and related state.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"id","kind":"field","type":"yuiBlockId","description":"Stores id as yuiBlockId.","signature":"yuiBlockId id","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"parent","kind":"field","type":"yuiBlockId","description":"Stores parent as yuiBlockId.","signature":"yuiBlockId parent","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"component","kind":"field","type":"yuiComponentMetadata","description":"Stores component as yuiComponentMetadata.","signature":"yuiComponentMetadata component","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"label","kind":"field","type":"text","description":"Stores label as text.","signature":"text label","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"content","kind":"field","type":"text","description":"Stores content as text.","signature":"text content","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"focusOrder","kind":"field","type":"int","description":"Stores focus order as int.","signature":"int focusOrder","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"visible","kind":"field","type":"bool","description":"Stores visible as bool.","signature":"bool visible","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"enabled","kind":"field","type":"bool","description":"Stores enabled as bool.","signature":"bool enabled","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiBlock","kind":"constructor","parameters":[{"name":"id","type":"yuiBlockId","description":"Id."},{"name":"parent","type":"yuiBlockId","description":"Parent."},{"name":"component","type":"yuiComponentMetadata","description":"Component."},{"name":"label","type":"text","description":"Label."},{"name":"content","type":"text","description":"Content."},{"name":"focusOrder","type":"int","description":"Focus order."}],"returns":"void","signature":"yuiBlock(yuiBlockId id, yuiBlockId parent, yuiComponentMetadata component, text label, text content, int focusOrder)","description":"Yui block.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","ui"],"exampleId":"method-Describe-9","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/ui.yh","line":50,"sha256":"2745dad504552ce545dea2a953613be247f8b49f1b6712811e0a370cfa9e8575"},"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 yuiBlock","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.\nyuiBlock sample = yuiBlock(yuiBlockId(\"value\"), yuiBlockId(\"value\"), yuiComponentMetadata(\"Nova\", \"role\", \"property Schema\", \"child Rule\", \"defaults\", \"example\", \"design Label\", true), \"Player health\", \"content\", 1)\nConsole.Log(Text.From(sample.label))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiblock\"\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":"8aede239a9507de34291820afa74f60a09d7dd1a2655e29999eee4932f6cc1b2","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-9","title":"yuiBlock.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Describe.\nyuiBlock instance = yuiBlock(yuiBlockId(\"value\"), yuiBlockId(\"value\"), yuiComponentMetadata(\"Nova\", \"role\", \"property Schema\", \"child Rule\", \"defaults\", \"example\", \"design Label\", true), \"Player health\", \"content\", 1)\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiblock\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"b8c8eb2939da3f987a13759722a8613ede7c52d76aab9c8cb20f12817873e3d8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["id","parent","component","label","content","focusOrder","visible","enabled","yuiBlock","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiBlock","json":"https://demonhunterlabs.com/reference/items/ui--yuiBlock.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiBlock.md"}
