如何在Ionic Creator中填充选择

时间:2015-08-19 06:17:21

标签: ionic-framework ionic

我正在使用Ionic Creator来开发应用程序。在尝试添加select(下拉列表)时,我看不到任何方式为下拉列表输入选项?

1 个答案:

答案 0 :(得分:3)

简单但不喜欢回答:你不能通过拖放来做到这一点。

如果您查看从Ionic Creator下载时获得的来源,您会看到它创建了"只是" select元素:

<select></select>

所以,你可以通过拖放HTML元素并将form元素放入<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> 元素并将以下代码放入其中来伪造它&#34;

<table id="documentDisplay">
        <thead>
          <tr>
              <th align="left">Document Type</th>
            <th align="left">File Name</th>
            <th align="left">Document Date</th>
          </tr>
        </thead>
      </table>

我不知道未来来自Ionic的人是否会加上这个。如果你在他们(非常活跃的)论坛上要求它作为一个功能,那可能是值得的:http://forum.ionicframework.com/