{"id":2167,"date":"2015-09-01T05:42:25","date_gmt":"2015-09-01T05:42:25","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=2167"},"modified":"2015-09-01T05:42:25","modified_gmt":"2015-09-01T05:42:25","slug":"how-to-populate-select-in-ionic-creator","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/stack-overflow\/how-to-populate-select-in-ionic-creator\/","title":{"rendered":"How to populate select in Ionic Creator"},"content":{"rendered":"<p><a href=\"http:\/\/stackoverflow.com\/users\/534755\/nikola\"><img loading=\"lazy\" decoding=\"async\" title=\"profile for Nikola at Stack Overflow, Q&amp;A for professional and enthusiast programmers\" src=\"http:\/\/stackoverflow.com\/users\/flair\/534755.png\" rel=\"lightbox[2167]\" alt=\"profile for Nikola at Stack Overflow, Q&amp;A for professional and enthusiast programmers\" width=\"208\" height=\"58\" \/><\/a><br \/>\nI&#8217;m a big fan of <a href=\"http:\/\/stackoverflow.com\/\">Stack Overflow<\/a> and I tend to contribute regularly (am currently in the <a href=\"http:\/\/stackexchange.com\/leagues\/1\/alltime\/stackoverflow\/2008-07-31\/534755?sort=reputationchange#534755\">top 0.X%<\/a>).\u00a0In this category (<a href=\"http:\/\/www.nikola-breznjak.com\/blog\/category\/stack-overflow\/\">stackoverflow<\/a>)\u00a0of posts, I will be posting my top rated questions and answers. This, btw, is allowed as explained in the meta thread <a href=\"http:\/\/meta.stackoverflow.com\/questions\/266971\/can-i-post-so-questions-and-answers-in-a-personal-blog\/266973\">here<\/a>.<\/p>\n<p>As you may know, I&#8217;m really into Ionic framework lately\u00a0and am helping out on StackOverflow with the knowledge I gained so far with the framework. I&#8217;m currently #5 All time answerer.<\/p>\n<p>I answered\u00a0<a href=\"http:\/\/stackoverflow.com\/questions\/32087815\/how-to-populate-select-in-ionic-creator\/32089127\">this question<\/a>\u00a0by user <a href=\"http:\/\/stackoverflow.com\/users\/5241973\/umer-khalid\">Umer Khalid<\/a>:<\/p>\n<p>I am using <a href=\"https:\/\/creator.ionic.io\/\">Ionic Creator<\/a> for developing an application. While trying to add select (dropdown) I could not see any way to enter options for the dropdown?<\/p>\n<p>My <a href=\"http:\/\/stackoverflow.com\/questions\/32087815\/how-to-populate-select-in-ionic-creator\/32089127#32089127\">answer<\/a> was:<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>Simple, but not liked, answer: you can&#8217;t do it by drag&amp;drop.<\/p>\n<p>If you take a look at the source you get when you download from Ionic Creator, you will see it creates &#8220;just&#8221; the <code>select<\/code> element:<\/p>\n<p><code>&lt;select&gt;&lt;\/select&gt;<\/code><\/p>\n<p>So, you could &#8220;kind of fake it&#8221;, by drag&amp;dropping the <code>HTML<\/code> element inside the <code>form<\/code> element and putting the following code inside:<\/p>\n<pre class=\"lang:default decode:true  \">&lt;label class=\"item item-select\" name=\"myselect\"&gt;\r\n    &lt;span class=\"input-label\"&gt;Input&lt;\/span&gt;\r\n    &lt;select&gt;\r\n\r\n        &lt;option value=\"1\"&gt;1&lt;\/option&gt;\r\n        &lt;option value=\"2\"&gt;2&lt;\/option&gt;\r\n    &lt;\/select&gt;\r\n&lt;\/label&gt;<\/pre>\n<p>I don&#8217;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: <a href=\"http:\/\/forum.ionicframework.com\/\" rel=\"nofollow\">http:\/\/forum.ionicframework.com\/<\/a><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a big fan of Stack Overflow and I tend to contribute regularly (am currently in the top 0.X%).\u00a0In this category (stackoverflow)\u00a0of posts, I will be posting my&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1991,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,35],"tags":[],"class_list":["post-2167","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ionic","category-stack-overflow"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/2167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=2167"}],"version-history":[{"count":1,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/2167\/revisions"}],"predecessor-version":[{"id":2168,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/2167\/revisions\/2168"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/1991"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=2167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=2167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=2167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}