[ 3 posts ]

Mona Patel

  • Username: mona_patel
  • Joined: Mon Nov 14, 2011 1:22 pm
  • Posts: 16
  • GitHub: Mona
  • Gists: Mona
  • IRC: Mona
  • Offline
  • Profile

Autocomplete 3 Hover and Active effect

Post Posted: Wed Nov 30, 2011 12:45 pm
+0-
Hi All,

When I click on input item box at that time i want to open autocomplete list with blank values and header into that. I opened same thing but my problem is in that blank list have hover and active first item effect but i want to remove that effect only when my first time focus will be in input box and list is populated with blank entries, after that if i will search with any other character then i want that hover and active first item effect.
I would appreciate your suggestions.

Thanks,
Mona

Ryan Grove

YUI Developer

  • Username: rgrove
  • Joined: Tue Dec 09, 2008 9:55 pm
  • Posts: 275
  • Location: Portland, OR
  • Twitter: yaypie
  • GitHub: rgrove
  • Gists: rgrove
  • IRC: rgrove
  • YUI Developer
  • Offline
  • Profile

Re: Autocomplete 3 Hover and Active effect

Post Posted: Thu Dec 01, 2011 1:29 pm
+0-
Filling the list with blank items just to make it appear is hacky. I don't recommend doing this. Instead, you should probably just force the list to be visible by calling myAC.show(), and use CSS to increase the minimum height of the empty list container if desired. If you want to add a header, you should prepend it to the list's container, not to the result list itself.

Mona Patel

  • Username: mona_patel
  • Joined: Mon Nov 14, 2011 1:22 pm
  • Posts: 16
  • GitHub: Mona
  • Gists: Mona
  • IRC: Mona
  • Offline
  • Profile

Re: Autocomplete 3 Hover and Active effect

Post Posted: Tue Dec 06, 2011 8:40 am
+0-
Thanks Ryan.
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum