Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with --> filter="{ name: 'text'}" <-- #1021

Open
mimial6 opened this issue Oct 4, 2017 · 0 comments
Open

Problem with --> filter="{ name: 'text'}" <-- #1021

mimial6 opened this issue Oct 4, 2017 · 0 comments

Comments

@mimial6
Copy link

mimial6 commented Oct 4, 2017

Hello.

I was testing the example of http://ng-table.com/#/ and I don't achieve that in the name colum appears the box for filtering. The box was positioning in the middle of the table.

The problem is that ng-table library sustitutes filter="{ name: 'text'}" for input type=text and in HTML5 it doesn't work input type=text. In HTML5 it works input type=search. Thus, I have downloaded the https://unpkg.com/[email protected]/bundles/ng-table.min.js and I have changed that:

<input type=text name={{name}} ng-disabled=$filterRow.disabled ng-model=params.filter()[name] class="input-filter form-control" placeholder="{{getFilterPlaceholderValue(filter, name)}}"/>

for this:

<input type=search name={{name}} ng-disabled=$filterRow.disabled ng-model=params.filter()[name] class="input-filter form-control" placeholder="{{getFilterPlaceholderValue(filter, name)}}"/>

I hope that my contribution will be useful for someone.

Bye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant