有没有办法在ng-repeat中包含并迭代按下输入字段时显示的虚拟键盘? http://plnkr.co/edit/4cP2xSDRgvHG29RuA92N?p=preview 因为现在,使用jQuery,它只显示第一个输入....
<input style="background: white; color: black;" type="text" id="myInput" class="form-control" data-ng-model="food.Text"/>
<table class="ui-bar-a" id="n_keypad" style="display: none; -khtml-user-select: none;">
<tr>
<td><a data-role="button" data-theme="b" class="numero">7</a></td>
<td><a data-role="button" data-theme="b" class="numero">8</a></td>
<td><a data-role="button" data-theme="b" class="numero">9</a></td>
<td><a data-role="button" data-theme="e" class="del">Del</a></td>
</tr>
<tr>
<td><a data-role="button" data-theme="b" class="numero">4</a></td>
<td><a data-role="button" data-theme="b" class="numero">5</a></td>
<td><a data-role="button" data-theme="b" class="numero">6</a></td>
<td><a data-role="button" data-theme="e" class="clear">Clear</a></td>
</tr>
<tr>
<td><a data-role="button" data-theme="b" class="numero">1</a></td>
<td><a data-role="button" data-theme="b" class="numero">2</a></td>
<td><a data-role="button" data-theme="b" class="numero">3</a></td>
<td><a data-role="button" data-theme="e"> </a></td>
</tr>
<tr>
<td><a data-role="button" data-theme="e" class="neg">-</a></td>
<td><a data-role="button" data-theme="b" class="zero">0</a></td>
<td><a data-role="button" data-theme="e" class="pos">+</a></td>
<td><a data-role="button" data-theme="e" class="done">Done</a></td>
</tr>
</table>
答案 0 :(得分:0)
你有几个问题。
我在plunker上工作,这里是mine。虽然我没有解决上述所有问题。
data-ng-click="food.showKeypad = true" //Use this on input
data-ng-show="food.showKeypad" //use this on table
//No need events for input, dont forget to remove display none from table