3 ms·
It would have been good to have a way of defining a method that can return the values instead of pointing to a static list. Also, perhaps a way of having a meth
by pkphilip 5y ago
It would have been good to have a way of defining a method that can return the values instead of pointing to a static list. Also, perhaps a way of having a method for handling the display via a method and/or div.
example:
<input list="ice-cream-flavors" id="ice-cream-choice" match="findMatch()" displayMatches="displayMatches()" name="ice-cream-choice" />
<div id="match">
<label>{match.id}</label>
<img src="{match.imageUrl}"/>
<p>{match.value}</p>
</div>
But then HTML itself would need to have a templating syntax which works on data including having the ability to do conditional branching, looping, pattern matching etc... which may not have been a bad idea. But then you may be reinventing javascript :)