AutoSuggestController

6 views
Skip to first unread message

atlguy

unread,
Feb 8, 2010, 10:39:57 AM2/8/10
to Blast Mojo
Has anyone worked with the AutoSuggestController enough to figure out
how to bold the matching text in the list of suggestions?

Loyal Chow

unread,
Feb 8, 2010, 12:34:34 PM2/8/10
to blast...@googlegroups.com
The suggestions generate an under-ordered list, each with a class="suggestion". S

Loyal Chow

unread,
Feb 8, 2010, 12:38:38 PM2/8/10
to blast...@googlegroups.com
Oops, sent the last message by accident.

The suggestions generate an under-ordered list, each with a class="suggestion". So you can style them with css: "li.suggestion { font-weight: bold; }"

Cheers,

Loyal

atlguy

unread,
Feb 9, 2010, 11:41:35 AM2/9/10
to Blast Mojo
I actually figured this out. The below would not work because I only
want to bold the letters in the suggestion list that match what the
user has typed.

I was able to go into GetSuggestionsCommand.js and bold the
appropriate text while looping through the list of suggestions before
spitting them out. Seems to work so far.


On Feb 8, 12:38 pm, Loyal Chow <loyalc...@gmail.com> wrote:
> Oops, sent the last message by accident.
>
> The suggestions generate an under-ordered list, each with a
> class="suggestion". So you can style them with css: "li.suggestion {
> font-weight: bold; }"
>
> Cheers,
>
> Loyal
>

Reply all
Reply to author
Forward
0 new messages