typeahead.js icon indicating copy to clipboard operation
typeahead.js copied to clipboard

Documentation for custom DOM elements

Open Dutchy- opened this issue 8 years ago • 4 comments

I've found the option to specify custom DOM elements in #902 , but this is not documented on https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md#options .

The reason I am asking is because I want to control all typeahead elements. I'm trying to remove all inline style elements for CSP. Can I specify all elements this way or only menu and hint?

Dutchy- avatar Jan 17 '17 16:01 Dutchy-

Also looking for this. The "results" option that was mentioned in #875 does not seem to work.

samuel99 avatar Feb 01 '17 15:02 samuel99

in 0.11.1: Implemented by using template: { suggestion: Handlebars.compile('<div>{{value}} </div>') } Still looking forward to the documentation as we can only control the element being displayed and not the full DOM element

ghost avatar Dec 06 '17 21:12 ghost

templates.suggestion is not the same as 'resuslts' and possibility to direct output to custom dropdown container. I'm unhappy with current "inline position:relative management" - it is legacy. there are ways to make the same better.

rpokrovskij avatar May 23 '19 19:05 rpokrovskij

I've opened this a long time ago and I am no longer invested - you can close this if you want.

Dutchy- avatar Dec 10 '21 09:12 Dutchy-