<p dir="auto">Hello;<br>
I think the addition of text-justify style would be a good thing. Justified text provides a better esthetical and lacks Bootstrap according to me.</p>
<p dir="auto">I was looking for ajax addition to Typeahead and found nothing that suited me so I conjured my own patch. The main object was to allow AJAX functionality but you can do a few additional things with it:</p>
<p dir="auto">Pass a function to the "source" option, that does something asynchronously and when ready calls typeahead.process() with a list of strings or objects. This is ideal for AJAX.<br>
Pass a function to the "source" option, returning a list of strings/objects<br>
Pass a list of objects to the "source" option and use a new "property" option to define which property on the objects defines the value on which is looked up and appears in the input box.<br>
Pass a function to a new "onselect" option, which calls the function with object/string when selected.</p>
<p dir="auto">You can get it here with a few examples and a diff between official Typeahead and mine: <a href="https://gist.github.com/1866577">https://gist.github.com/1866577</a></p>
<p dir="auto">I didn't know where else to post this but these additions have helped me a lot in two projects and I wanted to share it and get some feedback.</p>