skip to Main Content

boostrap-tagsinput + typeahead as source doesnt work – Twitter bootstrap

var engine = new Bloodhound({ remote: { url: 'http://mockie.dev/blog/tag/autocomplete?keyword=%QUERY%', wildcard: '%QUERY%' }, datumTokenizer: Bloodhound.tokenizers.whitespace('title'), queryTokenizer: Bloodhound.tokenizers.whitespace }); $(".typeahead").tagsinput({ typeahead: { source: engine.ttAdapter() } }); json return for the source: [{"id":3,"user_id":1,"title":"Book Review 1","slug":"book-review","meta_keyword":null,"body":"book review","meta_description":null,"created_at":"2017-02-01 18:39:46","updated_at":"2017-02-05 13:26:05","article_counter":0}] these are the js files…

VIEW QUESTION
Back To Top
Search