can a placeholder be set on the input in an ng-table?



Is there a way to set a placeholder on the <input> created in an ngTable?

As a second choice, is there another way to set an input to serve as the filter?

Changes to this would be appreciated. Thanks!


You can edit ng-table.js

Unminify ng-table.js (ie: and after that in line 250 you can find

<input type="text" ng-model="params.filter()[name]" ng-if="filter==\'text\'" ,class="input-filter form-control"/>

add placeholder there ie :

<input type="text" ng-model="params.filter()[name]" ng-if="filter==\'text\'" placeholder="input {{name}}",class="input-filter form-control"/>

Please see here for working demo :

Answered By – sylwester

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More