{"id":"ui--yuiVisualToken","name":"yuiVisualToken","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiVisualToken","description":"A yui visual token record carrying name, category, textValue, numericValue, colorValue, and related state.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"name","kind":"field","type":"text","description":"Stores name as text.","signature":"text name","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"category","kind":"field","type":"text","description":"Stores category as text.","signature":"text category","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"textValue","kind":"field","type":"text","description":"Stores text value as text.","signature":"text textValue","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"numericValue","kind":"field","type":"int","description":"Stores numeric value as int.","signature":"int numericValue","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"colorValue","kind":"field","type":"yuiColor","description":"Stores color value as yuiColor.","signature":"yuiColor colorValue","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"source","kind":"field","type":"text","description":"Stores source as text.","signature":"text source","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiVisualToken","kind":"constructor","parameters":[{"name":"name","type":"text","description":"Name."},{"name":"category","type":"text","description":"Category."},{"name":"textValue","type":"text","description":"Text value."},{"name":"numericValue","type":"int","description":"Numeric value."},{"name":"colorValue","type":"yuiColor","description":"Color value."},{"name":"source","type":"text","description":"Source."}],"returns":"void","signature":"yuiVisualToken(text name, text category, text textValue, int numericValue, yuiColor colorValue, text source)","description":"Yui visual token.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"ValidationIssue","kind":"method","parameters":[],"returns":"text","signature":"ValidationIssue() returns text","description":"Validation issue.","tags":["thing","method","ui"],"exampleId":"method-ValidationIssue-7","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","ui"],"exampleId":"method-Describe-8","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/visual-00-definitions.yh","line":5,"sha256":"2fdbd854c9056699664f7620813b477851fc2818d11cd9f905da1a7bd3647583"},"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 yuiVisualToken","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.\nyuiVisualToken sample = yuiVisualToken(\"Nova\", \"category\", \"text Value\", 1, yuiColor(1, 1, 1, 1), \"example\")\nConsole.Log(Text.From(sample.name))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivisualtoken\"\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":"4d08436f98603ddcb8551c0a11e2e5f85db270c046994ea5835cd4de0daa7cda","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ValidationIssue-7","title":"yuiVisualToken.ValidationIssue","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Validation issue.\nyuiVisualToken instance = yuiVisualToken(\"Nova\", \"category\", \"text Value\", 1, yuiColor(1, 1, 1, 1), \"example\")\ntext result = instance.ValidationIssue()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivisualtoken\"\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":"f046e7eab39a0573b03dc1fef7193cb390f5a9273ec6dcc60b7059fa4e2a9f55","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-8","title":"yuiVisualToken.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.\nyuiVisualToken instance = yuiVisualToken(\"Nova\", \"category\", \"text Value\", 1, yuiColor(1, 1, 1, 1), \"example\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuivisualtoken\"\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":"a14464590345ac23a9fd3b3b79cfe10da06ecbaa113a245d5e806290b93b63dd","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["name","category","textValue","numericValue","colorValue","source","yuiVisualToken","ValidationIssue","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiVisualToken","json":"https://demonhunterlabs.com/reference/items/ui--yuiVisualToken.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiVisualToken.md"}
