@vasa-chi wrote:
Hi.
I can't find any mention of
<select>
usage in ember documentation.
What is the idiomatic way to render select?Currently, I have something like this (using ember-truth-helpers):
<select onchange={{action (mut option) value="target.value"}}> <option value="" selected={{if (eq option "") true}}>-- select option --</option> <option value="one" selected={{if (eq option "one") true}}>one</option> <option value="two" selected={{if (eq option "two") true}}>two</option> </select>
It doesn't seem right to use an addon (I can write
eq
helper myself, but that's not the point) to render a simple<select>
. Am I missing something?
Posts: 5
Participants: 4