掲示板
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,
9年前 に Kyle Joseph Stiemann によって更新されました。
RE: Autocomplete
Liferay Master 投稿: 760 参加年月日: 13/01/14 最新の投稿
Hi Mounir,
It looks like your source and inputNode attributes are set to be the same thing (#<portlet:namespace />name-pages). I believe this is an error. If not, could you post the markup associated with this component?
- Kyle
It looks like your source and inputNode attributes are set to be the same thing (#<portlet:namespace />name-pages). I believe this is an error. If not, could you post the markup associated with this component?
- Kyle