> Dan G. Switzer, II schrieb:
>> Jörn,
>>
>>
>>> Fully agreed, I'll make that optional. I've got another request for an
>>> even more sophicistacted highlighting, seems like a good idea to
>>> implement it not only as a boolean option.
>>>
>>
>> You could also just define that highlight function as the default option
>> for
>> an onHighlight setting. That way someone could just overwrite the
>> default
>> behavior.
>>
>> I'd like to see both a highlight: true/false and onHighligh:
>> function(){}
>> option. That would provide tons of flexibility.
>>
> How about this:
> @option Boolean|Function highlight Whether and how to highlight matches
> in the select box. Set to false to disable. Set to a function to
> customize. Default: Wraps the search term in a <strong> element
Jörn,
What would be passed to the function? The containing li? a jQuery object
containing the containing li? The HTML text?
- Brian