在我的流星应用程序中,我使用comerc:autoform-typeahead包(它与al契据:autoform一起工作)来实现提前输入。文档说我们可以这样使用它
{
tags: {
type: String,
autoform: {
type: "typeahead",
afFieldInput: {
typeaheadOptions: {},
typeaheadDatasets: {}
}
}
}
}此包工作,并显示所有匹配的结果。问题是,我们如何限制我们的产出(例如,5 )?这些解决办法:
typeaheadOptions: {limit : 5}或
typeaheadDatasets: {limit: 5}别工作了。
第二个问题:对于有限制选项的autoforms,还有其他的预输入包吗?
发布于 2016-07-19 08:47:11
您可以在服务器端搜索方法中设置限制。我的问题这里将为您提供有用的参考。
https://stackoverflow.com/questions/38437844
复制相似问题