{"id":"ui--CreateYuiCoreControlSpec","name":"CreateYuiCoreControlSpec","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiCoreControlSpec(text kind, text role, text properties, text childRule, text defaults, bool interactive, bool focusable, text keyboardContract, text pointerContract, text accessibilityActions, text valueModel, text layoutBehavior, text slots, text applicableStates, text source) returns yuiCoreControlSpec","description":"Create yui core control spec from the supplied values.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"kind","type":"text","description":"Supply kind as text."},{"name":"role","type":"text","description":"Supply role as text."},{"name":"properties","type":"text","description":"Supply properties as text."},{"name":"childRule","type":"text","description":"Supply child rule as text."},{"name":"defaults","type":"text","description":"Supply defaults as text."},{"name":"interactive","type":"bool","description":"Supply interactive as bool."},{"name":"focusable","type":"bool","description":"Supply focusable as bool."},{"name":"keyboardContract","type":"text","description":"Supply keyboard contract as text."},{"name":"pointerContract","type":"text","description":"Supply pointer contract as text."},{"name":"accessibilityActions","type":"text","description":"Supply accessibility actions as text."},{"name":"valueModel","type":"text","description":"Supply value model as text."},{"name":"layoutBehavior","type":"text","description":"Supply layout behavior as text."},{"name":"slots","type":"text","description":"Supply slots as text."},{"name":"applicableStates","type":"text","description":"Supply applicable states as text."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"yuiCoreControlSpec","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/controls-10-catalog.yh","line":106,"sha256":"dcb0b3f1a6fbdae77b135eff789f8e8e55857230a9817f1eca1709021b73d836"},"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 CreateYuiCoreControlSpec","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 kind = \"kind\"\ntext role = \"role\"\ntext properties = \"properties\"\ntext childRule = \"child Rule\"\ntext defaults = \"defaults\"\nbool interactive = true\nbool focusable = true\ntext keyboardContract = \"keyboard Contract\"\ntext pointerContract = \"pointer Contract\"\ntext accessibilityActions = \"accessibility Actions\"\ntext valueModel = \"value Model\"\ntext layoutBehavior = \"layout Behavior\"\ntext slots = \"slots\"\ntext applicableStates = \"applicable States\"\ntext source = \"example\"\nyuiCoreControlSpec result = CreateYuiCoreControlSpec(kind, role, properties, childRule, defaults, interactive, focusable, keyboardContract, pointerContract, accessibilityActions, valueModel, layoutBehavior, slots, applicableStates, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuicorecontrolspec\"\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":"e1361e159588c83afd4df8e9cf8042bb324432abdfdb00c05972385a7023e947","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiCoreControlSpec","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiCoreControlSpec.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiCoreControlSpec.md"}
