Repository navigation
Options
Dimitris Krestos edited this page May 15, 2017
·
20 revisions
$('#search').hideseek({
list: '.hideseek-data',
nodata: '',
attribute: 'text',
matches: false,
highlight: false,
ignore: '',
navigation: false,
ignore_accents: false,
hidden_mode: false,
min_chars: 1
});- The list that holds the data
- options: element class
$('#search').hideseek({
list: '.hideseek-data'
});- The text that appears when no results are available
- options: plain text
$('#search').hideseek({
nodata: ''
});- Where to search
- options: text, alt, title
$('#search').hideseek({
attribute: 'text'
});- Matches user's query and data against regular expressions
- options: hash object
$('#search').hideseek({
matches: { '^ale$': 'male' }
});- Highlight the matched portion of text (wraps with
<mark class="highlight">tag) - options: false, true
$('#search').hideseek({
highlight: false
});- Ignore elements with specific class or id (
<li class="ignore-me">element</li>) - options: class_name
$('#search').hideseek({
ignore: '.ignore-me'
});- Enables the selection by using the key arrows (up - down)
- and selects the item with the return key, if the item is a link
- the it redirects else fills the input with the item's text
- options: false, true
$('#search').hideseek({
navigation: false
});- Ignore accented characters (
<li>Michèle</li>) - options: false, true
$('#search').hideseek({
ignore_accents: true
});- Hides the list and shows only the query results
- options: false, true
$('#search').hideseek({
hidden_mode: true
});- Sets the minimum required characters to search
- options: integer
- default: 1
$('#search').hideseek({
min_chars: 3
});