【问题标题】:Meteor Autoform Select2 add on the flyMeteor Autoform Select2 即时添加
【发布时间】:2023-03-29 21:03:02
【问题描述】:

我希望能够使用 autoform 和 select2 将标签动态添加到标签集合中,类似于 select2 中的这个示例。 https://select2.github.io/examples.html#tags 我已经创建了一个标签集合,我可以从它的专用表单中添加它。如果在全局表单中不可用,最终用户必须能够选择可用标签并能够添加新标签,而无需转到专用标签表单。是否有一些基于服务器的 autoform 钩子我可以附加或实现此功能?

【问题讨论】:

    标签: meteor meteor-autoform on-the-fly select2


    【解决方案1】:

    您需要添加tags 选项。

    这里有一个例子:https://github.com/aldeed/meteor-autoform-select2#setting-select2-options

    【讨论】:

      猜你喜欢
      • 2015-10-22
      • 2017-04-21
      • 2015-05-08
      • 2017-10-05
      • 1970-01-01
      • 2016-02-08
      • 1970-01-01
      • 1970-01-01
      • 2015-09-22
      相关资源
      最近更新 更多