【发布时间】:2017-04-15 01:08:55
【问题描述】:
我用 aldeed:autoform 中的集合填充了一个选择输入字段。
字段声明
{{> afFormGroup name="patientID" type="select" options=patientIDs}}
助手
patientIDs:function () {
return Meteor.users.find({}).map(function (user) {
return {label: user.profile.firstName, value: user._id};
});
}
但事实证明,下拉菜单太大而无法选择一个选项。因此我需要在自动表单中实现类似于HTML datalist 的功能。如何在流星 aldeed:autoform 中实现这一点?
【问题讨论】:
标签: select meteor drop-down-menu meteor-autoform html-datalist