如何用陨石中的Mesosphere指定多个表格?

时间:2013-08-24 09:26:38

标签: meteor meteorite

我有多种表格我想申报,但看起来你一次只能做一次:

Mesosphere({
    name: "signupForm",
    method: "signup",
    fields: {

        username: {
            required: true
        },

        email: {
            required: true,
            format: "email",

        password: {
            required: true,
        }

    }
});

Mesosphere({
    name: "loginForm",
    method: "login",
    fields: {

        usernameOrEmail: {
            required: true,
        },

        password: {
            required: true,
            }
        }

    }
});

似乎无法传入数组或多个对象。

1 个答案:

答案 0 :(得分:1)

不,它目前不支持一次指定多个表单。如果您想通过github摇摆并提交一个问题作为功能请求提醒我。我很乐意在未来的版本中加入这个内容。 http://github.com/copleykj/Mesosphere