ng2-ui / auto-complete

Angular Auto Complete component and directive
https://ng2-ui.github.io/dist/#/auto-complete
MIT License
279 stars 123 forks source link

Suppressing No result found message #307

Open FullStackDeveloper11 opened 6 years ago

FullStackDeveloper11 commented 6 years ago

I have requirement to implement dual textbox.

  1. If User type some letter in the textbox then it should display the name starting with typed letter(this I have already implemented using this letter)

  2. If user type just number then it should not do anything but I am getting message "No result found" message , how can I suppress this message?

Thanks

ceejeeb commented 6 years ago

I second this.

SeokwonSong commented 6 years ago

I third this.

jdk339 commented 6 years ago

I "fourth" this. Any updates on when/if this will be implemented?

jdk339 commented 6 years ago

Just found out this repo is no longer being maintained as of now.

almothafar commented 6 years ago

@jdk339 If you can do PR for I'll push this PR ASAP, currently it is nice to have, I'll try to make it later, but will be better if someone do faster PR for this.

levanah22 commented 6 years ago

hey guys, i solved this with a simple css code:

.ngui-auto-complete > ul {border: 0 !important;} .ngui-auto-complete > ul > li {border-right: 1px solid #ccc !important; border-left: 1px solid #ccc !important;} .ngui-auto-complete > ul > li:nth-of-type(1) {border-top: 1px solid #ccc !important;} .ngui-auto-complete > ul > li:last-of-type {border-bottom: 1px solid #ccc !important;} .ngui-auto-complete > ul > li.no-match-found {display: none;}

dninomiya commented 6 years ago

@levanah22 I thought about that method, but I think that it would be better for you to be more intuitive styling. #348 😄