lundi 26 octobre 2015

Radio buttons in ember 2.0

So its been a month with ember right now, im really happy with it but getting information is kind of hard due to the amount of versions there is and how they change stuff between versions.

Regarding build in input elements i have found the following

for text type fields
{{input class='input' type='email' value=email}} 

{{textarea value=pictureDescription class='textarea' id='coolTextArea' value=content}}

{{input type="checkbox"  checked=model.allowComments}}

{{input type="file"  name="image"  value=image class='hidden_file'  }}

even cool selects

{{view "select"
                            content=languagePreferences
                            optionValuePath="content.code"
                            optionLabelPath="content.label"
                            class="my-dropdown" value=model.submisionType}}

which was kind of confusing since i read in older versions selects were kind of complicated.

Whats the deal with radio buttons? Are there native radio buttons ? or should i use something like :

http://ift.tt/1GEwqsp

i dont want to use strange dependencies (as i used to with x-select) when there are native available

Thanks in advance




Aucun commentaire:

Enregistrer un commentaire