【问题标题】:How to add a html datalist field to a meteor aldeed:autoform?如何将 html 数据列表字段添加到流星 aldeed:autoform?
【发布时间】: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


    【解决方案1】:

    有一个用于 autoform 的 select2 插件,它可能会帮助你得到你想要的东西。见here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-08
      • 1970-01-01
      • 2020-04-25
      • 2019-10-24
      • 2016-04-26
      • 1970-01-01
      • 2015-10-18
      • 2015-07-31
      相关资源
      最近更新 更多