Skip to content

Instantly share code, notes, and snippets.

@jharding
Last active September 15, 2016 13:00
Show Gist options
  • Save jharding/9458824 to your computer and use it in GitHub Desktop.
Save jharding/9458824 to your computer and use it in GitHub Desktop.
#rtl-support .tt-dropdown-menu {
text-align: right;
}
<div id="rtl-support">
<input class="typeahead" type="text" dir="rtl" placeholder="نعم">
</div>
var arabicPhrases = new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.whitespace,
queryTokenizer: Bloodhound.tokenizers.whitespace,
local: [
"الإنجليزية",
"نعم",
"لا",
"مرحبا",
"أهلا"
]
});
$('#rtl-support .typeahead').typeahead({
hint: false
},
{
name: 'arabic-phrases',
source: arabicPhrases
});
@knownasilya
Copy link

line 23 is a typo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment