FieldCompletionFunction
是 InputField 的一个选项,指定应用于输入字段内容的函数,以生成完成列表.
更多信息
- FieldCompletionFunction->Automatic 的默认值表示对于输入字段没有完成菜单.
- 当指定了字段完成函数,前端将会用 InputField 的当前内容调用函数. 如果调用函数的结果是一个 List,那么前端将会在弹出的完成菜单中显示列表的元素,一般位于输入字段的正下方.
- 如果完成函数返回一个空列表,将不会显示任何菜单.
- 每次敲击键盘后都会调用完成函数,即便是已经设置了 ContinuousAction->False.
相关指南
-
▪
- 控件选项
文本
Wolfram Research (2017),FieldCompletionFunction,Wolfram 语言函数,https://reference.wolfram.com/language/ref/FieldCompletionFunction.html.
CMS
Wolfram 语言. 2017. "FieldCompletionFunction." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/FieldCompletionFunction.html.
APA
Wolfram 语言. (2017). FieldCompletionFunction. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/FieldCompletionFunction.html 年
BibTeX
@misc{reference.wolfram_2025_fieldcompletionfunction, author="Wolfram Research", title="{FieldCompletionFunction}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/FieldCompletionFunction.html}", note=[Accessed: 13-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_fieldcompletionfunction, organization={Wolfram Research}, title={FieldCompletionFunction}, year={2017}, url={https://reference.wolfram.com/language/ref/FieldCompletionFunction.html}, note=[Accessed: 13-April-2026]}