Reputation: 336
Hai I am working on CJuiAutoComplete in yii. Well I have to limit the the contents or result in the autocomplete. How can I do this. Please help?
Upvotes: 0
Views: 268
Reputation: 8950
If your are fetching the autocomplete results from your DB then you should put the limit in your db request. If it's from an array then you should slice your array to have only x values.
The CJUIAutoComplete
is just displaying what you give him as options to autocomplete, it's up to you to deliver more or less options!
For now we don't know how you populate your CJuiAutoComplete
so we can't help you more!
Upvotes: 1