【发布时间】: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}}
【问题讨论】: