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

allowMultiple: true does not search in JSON #70

Open
jorgenaranjo opened this issue Oct 9, 2016 · 1 comment
Open

allowMultiple: true does not search in JSON #70

jorgenaranjo opened this issue Oct 9, 2016 · 1 comment
Labels

Comments

@jorgenaranjo
Copy link

I have a table, this is generated from a JSON, when I try to filter for one parameter with property "allowMultiple: true" not return info.

Attached json example and $scope.availableSearchParams

$scope.availableSearchParams = [ { key: "expedient_number", name: "No expediente", placeholder: "Nº expediente..." }, { key: "activity_name", name: "Actividad", placeholder: "Actividad...", allowMultiple: true}, ];

Json example

[{"id":1,"license_type_id":1,"expedient_number":"alias","register_date":"1987-04-25","register_number":"1995/552","activity_id":2,"street_id":81,"activity_name":"Industria"},{"id":2,"license_type_id":1,"expedient_number":"alias","register_date":"1987-04-25","register_number":"1995/552","activity_id":2,"street_id":81,"activity_name":"Bar"},{"id":3,"license_type_id":1,"expedient_number":"alias","register_date":"1987-04-25","register_number":"1995/552","activity_id":2,"street_id":81,"activity_name":"Actividad"},{"id":4,"license_type_id":1,"expedient_number":"alias","register_date":"1987-04-25","register_number":"1995/552","activity_id":2,"street_id":81,"activity_name":"Industria"},{"id":5,"license_type_id":1,"expedient_number":"alias","register_date":"1987-04-25","register_number":"1995/552","activity_id":2,"street_id":81,"activity_name":"Industria"},{"id":6,"license_type_id":1,"expedient_number":"alias","register_date":"1987-04-25","register_number":"1995/552","activity_id":2,"street_id":81,"activity_name":"Bar"},{"id":7,"license_type_id":1,"expedient_number":"alias","register_date":"1987-04-25","register_number":"1995/552","activity_id":2,"street_id":81,"activity_name":"Bar"}, ]

@dnauck
Copy link
Owner

dnauck commented Nov 9, 2017

Hello @jorgenaranjo,

the searchbox does not search itsself. Its just an UI element that provides you an object with search parameters and values that you can pass to your search function.

@dnauck dnauck added the question label Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants