limit the character to 10 for filter text-field - ngTable <p>I have created an application using angularjs and ngTable with filer feature, the application is working fine also the filtering, but the filtering text-field should accept only 10 characters according to my requirement</p> <p><img src="https://i.stack.imgur.com/CfLgX.png" alt="enter image description here"></p> <p>Can anyone please tell me how to limit the character to 10 for that text-field, my code is as given below:</p> <p><strong><a href="http://jsfiddle.net/bjdLu0ab/" rel="nofollow noreferrer">JSFiddle</a></strong></p> <p><strong>script</strong></p> <pre><code>$scope.tableParams = new ngTableParams({ page: 0, count: 0 }, { total: 0, counts:[], getData: function ($defer, params) { // use build-in angular filter var orderedData = params.filter() ? $filter('filter')(data, params.filter()) : data; $defer.resolve(orderedData); } }); </code></pre> <p><strong>html</strong></p> <pre><code>&lt;div ng-app="main" ng-controller="DemoCtrl"&gt; &lt;table ng-table="tableParams" show-filter="true" class="table"&gt; &lt;tr ng-repeat="user in $data"&gt; &lt;td data-title="'Name'" filter="{ 'name': 'text' }"&gt;{{user.name}}&lt;/td&gt; &lt;td data-title="'Age'"&gt;{{user.age}}&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; </code></pre>