Reputation: 105
I am using Ionic Creator for developing an application. While trying to add select (dropdown) I could not see any way to enter options for the dropdown?
Upvotes: 8
Views: 764
Reputation: 15038
Simple, but not liked, answer: you can't do it by drag&drop.
If you take a look at the source you get when you download from Ionic Creator, you will see it creates "just" the select
element:
<select></select>
So, you could "kind of fake it", by drag&dropping the HTML
element inside the form
element and putting the following code inside:
<label class="item item-select" name="myselect">
<span class="input-label">Input</span>
<select>
<option value="1">1</option>
<option value="2">2</option>
</select>
</label>
I don't know if in future guys from Ionic will add this. It would be probably worth it if you request it as a feature over at their (very active) forum: http://forum.ionicframework.com/
Upvotes: 3