autoComplete.js
autoComplete.js copied to clipboard
Seeming inconsistency in the documentation for resultItem.highlight
In the docs under "Usage" (this file) there are two examples given of the configuration of resultItem.highlight that both have the snippet:
resultItem: {
highlight: {
render: true
}
}
But under "Configuration" (this file) for resultItem.highlight it is stated that its value can only be a boolean or a string, not an object. Isn't this inconsistent?
Hello @rhaver,
Good catch! I have just updated the Usage file as it was outdated.
Here is the correct configuration.
highlight (optional)
Type: Boolean | String of class values
Defaults: false
Example:
resultItem: {
highlight: true,
}
Cheers! :)