留言板

Autocomplete

Mounir Hallab,修改在9 年前。

Autocomplete

New Member 帖子: 5 加入日期: 14-5-7 最近的帖子
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.


<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,
thumbnail
Kyle Joseph Stiemann,修改在9 年前。

RE: Autocomplete

Liferay Master 帖子: 760 加入日期: 13-1-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