0
我已将选项添加到我的模式,但autofrom未显示选项。如何使用autoform显示选项
我的架构:
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
我已经添加了服务器/ security.js文件:
BetaSignups.permit(['insert']).apply();
我试过与你提供的问题相同。它对我来说非常好...... – iamhimadri
只是一个盲目的猜测:尝试添加'选项=“允许”'快速形成。 –
试用选项=“允许”,仍然是同样的问题.. – canesin