我已将选项添加到架构中,但autofrom没有显示这些选项。
我的模式:
BetaSignups = new Mongo.Collection("BetaSignups");
BetaSignups.attachSchema(new SimpleSchema({
segment: {
type: String,
label: "Segmento",
allowedValues: ["college", "highschool", "professional"],
autoform: {
options: [
{label: "Ensino superior", value: "college"},
{label: "Ensino médio e pré-vestibular", value: "highschool"},
{label: "Educação profissional", value: "professional"}
]
}
},
name: {
type: String,
label: "Nome",
max: 200
}, ...我在表格中添加了:
<template name="insertbetasignups">
{{> quickForm collection="BetaSignups" id="insertbetasignups" type="insert"}}
</template>并且缺少选项,它只显示标签:

我使用以下软件包:
meteor-platform
materialize:materialize
aldeed:collection2
alanning:roles
coffeescript
meteorhacks:flow-router
tap:i18n
aldeed:autoform
ongoworks:security我添加了一个server/security.js文件,其中包含:
BetaSignups.permit(['insert']).apply();发布于 2015-07-23 13:46:56
错误发生在我的安装程序中,我忘了将这个js添加到客户端库中,以配置autoform-物化包。
AutoForm.setDefaultTemplate('materialize'); https://stackoverflow.com/questions/31533854
复制相似问题