dnauck / angular-advanced-searchbox

A directive for AngularJS providing a advanced visual search box
http://dnauck.github.io/angular-advanced-searchbox/
MIT License
226 stars 98 forks source link

Allowing to search by one parameter only #68

Open gauravbhusare opened 7 years ago

gauravbhusare commented 7 years ago

Following is my available search params array

             $scope.availableSearchParams = [
                 { key: "client", name: "Client", placeholder: "Client Name..." },
                 { key: "expensehead", name: "Expense Head", placeholder: "Expense Head" },
                 { key: "expenseStatus", name: "Expense Status", placeholder: "Expense Status" },
                { key: "accountant", name: "Accountant", placeholder: "Accountant"}
            ];

and my HTML code is

           <nit-advanced-searchbox
                ng-model="searchParams"
               parameters="availableSearchParams"
               placeholder="Search..."
               template-url= "angular-advanced-searchbox.html"
            >
            </nit-advanced-searchbox>

but the above code is allowing me select only parameter. If I remove the selected parameter then also the searchbox is not editable for me.

dnauck commented 6 years ago

Hello @gauravbhusare,

i do not understand your issue correctly. I cannot reproduce it. Please provide a more detailed description of your issue (maybe a plunker, etc.)