【发布时间】:2014-12-05 04:01:33
【问题描述】:
我正在使用https://github.com/aldeed/meteor-autoform 收集我的一个流星。我正在使用 quickForm 并输入 insert。以下是相关代码:
<template name="postInsert">
<legend>Add your story here</legend>
{{> quickForm collection="Posts" id="insertPostForm" type="insert" buttonContent="Post!" resetOnSuccess=true}}
</template>
此表单提交并成功创建帖子。但它不显示成功消息。我知道我可以使用 onSuccess 挂钩并编写自己的成功消息。但我想知道是否有使用自动配置显示成功消息的标准方法?
我查看了 github 上的文档并进行了一些搜索,但所有解决方案都指向使用 onSuccess 钩子。这里的任何指针表示赞赏
【问题讨论】:
标签: meteor