///
{{language}}
', '{{name}}
', '{{description}}
' ].join(''), engine: Hogan }); // Arabic Phrases // Hardcoded list showing Right - To - Left(RTL) support $('.example-arabic .typeahead').typeahead({ name: 'arabic', local: [ "الإنجليزية", "نعم", "لا", "مرحبا", "کيف الحال؟", "أهلا", "مع السلامة", "لا أتكلم العربية", "لا أفهم", "أنا جائع" ] }); // NBA and NHL Teams // Two datasets that are prefetched, stored, and searched on the client $('.example-sports .typeahead').typeahead([ { name: 'nba-teams', prefetch: '../data/nba.json', header: '{{value}} – {{year}}
', engine: Hogan } ]); // Countries - Modified the first test here to add options // Specifies options to display hint with a highlight and adds a minimum length restriction for search // Prefetches data, stores it in localStorage, and searches it on the client $('.example-countries .typeahead').typeahead({ hint: true, highlight: true, minLength: 2 }, { name: 'countries', prefetch: '../data/countries.json', limit: 10 });