gpt4 book ai didi

css - 在 ng-table 的过滤器中添加占位符

转载 作者:太空宇宙 更新时间:2023-11-03 23:18:22 25 4
gpt4 key购买 nike

嗨,有人可以帮我吗?

我怎样才能在 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

关于css - 在 ng-table 的过滤器中添加占位符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29618768/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com