Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Almost immediately is the reason I don't like using this stuff. A hardcoded default value. There are so many things these UI generators can almost do but don't, and a default value for a dynamic selection is often one of the trickier ones to get right.


Here's the How To for that: https://docs.xmlui.org/howto#set-the-initial-value-of-a-sele...

Our hope is that by building up a set of these patterns, and making them available to agents via MCP, it will be as easy as possible to get things right.


No offense, but you failed here. What if nothing gets returned? Now you're basically just writing code. Debatably even that example you're just writing code. An onLoad callback with array indexing and child access? This is just JavaScript wrapped in XML.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: