嗨,有人可以帮我吗?
我怎样才能在 td 的文本框中有一个占位符?
这是代码
<td data-title="'Effectivity Date'" filter="{ 'date_from':'text','date_to':'text' }">{{item.date_start | dateToISO | date:'MMM-dd-yyyy'}}</td>
谢谢。
你可以更正ng-table.js
Unminify ng-table.js
然后在第250行我们可以找到
<input type="text" ng-model="params.filter [name]" ng-if="filter==\'text\'" ,class="input-filter form-control"/>
添加 placeholder
即:
<input type="text" ng-model="params.filter [name]" ng-if="filter==\'text\'" placeholder="input {{name}}",class="input-filter form-control"/>
操作演示:
Demo
我是一名优秀的程序员,十分优秀!