留言板
Autocomplete
Hi,
I have a problem using the resultFilters attribute for Autocomplete on a JSP page. The Autocomplete works with charMatch, phraseMatch and subWordMatch attributes, but no with startsWith (or startsWithFold) attribute.
With startsWith attribute, i don't get any result.
Does anyone have an idea ?.
Thank you,
I have a problem using the resultFilters attribute for Autocomplete on a JSP page. The Autocomplete works with charMatch, phraseMatch and subWordMatch attributes, but no with startsWith (or startsWithFold) attribute.
With startsWith attribute, i don't get any result.
<aui:script use="autocomplete,autocomplete-highlighters,autocomplete-filters,autocomplete-filters-accentfold">
new A.AutoComplete({
inputNode: '#<portlet:namespace />name-pages',
resultTextLocator: 'text',
resultHighlighter: 'startsWith',
resultFilters: 'startsWithFold',
activateFirstItem: true,
source: A.one('#<portlet:namespace />name-pages')
}
}).render();
</aui:script>
Does anyone have an idea ?.
Thank you,