I am trying to have a select filter in ngtable. I followed this example but looks like if the select item has a space (eg: Not Installed
or Not Running
- Need exact filter match
ng-table
doesn't actually apply the filters the data - it's only responsible for collecting the filter values from the user.
In your getData
function you've configured ng-table with, you are using the angular $filter service to apply the filter. It's this service that is responsible for doing the actual filtering. Therefore if you want an exact match behaviour you will need to use something other than $filter.
- ...extra blank entry which is removed once user selects and clicks the select filter again
UPDATE: I have edited my previous answer.
I've fixed this particular issue with ng-table. Here's a conversation about the problem: https://github.com/esvit/ng-table/pull/654#issuecomment-127095189
The commit for the fix: 1ee441
- Auto width of ngtable w.r.t it's data.
Column widths for the rendered html table are controlled using css. ng-table
does not add anything specific. You should create your own style rules to change the widths. Tip: you can also use colgroup
in the html markup and assign a specific width to each
tag