【问题标题】:Meteor autoform selectize select field not displaying all options流星自动选择选择字段不显示所有选项
【发布时间】:2016-05-29 07:26:42
【问题描述】:

我正在使用带有 selectize 的 Autoform,并且并非所有字段选项都显示在模板中(10 个中的 1 个似乎工作正常)。

我之前没有使用 autoform 手动渲染表单,但从未遇到过这个问题。

这是我的模板助手:

properties: function() {

        var properties =[];

        var propertiesCursor = Properties.find();

        propertiesCursor.forEach(function(property) {
            properties.push({
                label: property.name,
                value: property._id
            });
        });

        return properties;

    }

在我的模板中:

{{> afFieldInput name='location.propertyId' type='selectize' options=properties}}

【问题讨论】:

    标签: meteor meteor-autoform


    【解决方案1】:

    嗯,找到了.. isReactiveOptions=true 需要在模板中设置。

    选择要求,不在文档中。

    【讨论】:

      猜你喜欢
      • 2018-12-30
      • 1970-01-01
      • 1970-01-01
      • 2015-12-10
      • 1970-01-01
      • 1970-01-01
      • 2020-01-27
      • 2022-07-06
      • 1970-01-01
      相关资源
      最近更新 更多