【问题标题】:How to specify multiple forms with Mesosphere in Meteorite?如何在 Mesosphere 中使用 Mesosphere 在 Meteorite 中指定多种形式?
【发布时间】:2013-08-24 09:26:37
【问题描述】:

我有多个表格要申报,但您似乎一次只能申报一个:

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,
            }
        }

    }
});

似乎不能传入一个数组或多个对象。

【问题讨论】:

    标签: meteor meteorite


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2013-08-27
      • 2015-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多