掲示板

Autocomplete

9年前 に Mounir Hallab によって更新されました。

Autocomplete

New Member 投稿: 5 参加年月日: 14/05/07 最新の投稿
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
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