3 ms·
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,
by Neywiny 1y ago
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.
- judell 1y agoHere's the How To for that: https://docs.xmlui.org/howto#set-the-initial-value-of-a-select-from-fetched-data 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.
- Neywiny 1y agoNo 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.