简体   繁体   English

建议项目的默认长度,以rich:autocomplete表示

[英]Default length of suggestion item in rich:autocomplete

There is a default value for the length of the displayed suggestion from rich:autocomplete tag. rich:autocomplete标记显示的建议长度有一个默认值。 I can't find which attribute controls this value. 我找不到哪个属性控制此值。

popupClass and inputClass define the style of the input box and poup box respectively. popupClassinputClass定义输入框和弹出框的样式。

But it doesn't affect the length of the text displayed. 但这不会影响所显示文本的长度。

Does anyone know how I can change the length of text displayed ? 有谁知道我可以更改显示的文字长度吗?

Use minChars attribute for controlling the minimum number of characters to be entered for auto complete to start working. 使用minChars属性控制要输入的最小字符数,以便自动完成开始工作。

<rich:autocomplete minChars="2"  />

And as far as max characters is considered, when a User starts entering a very long text and doesn't find what he is searching for in the suggestion box, you think User will still continue typing them? 就最大字符数而言,当用户开始输入很长的文本并且在建议框中找不到他要搜索的内容时,您认为用户仍会继续输入它们吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM