我正在使用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>
Run Code Online (Sandbox Code Playgroud)
此表单成功提交并创建帖子.但它没有显示成功消息.我知道我可以使用onSuccess钩子并编写我自己的成功消息.但我想知道是否有一种使用autoform配置显示成功消息的标准方法?
我查看了github上的文档并进行了一些搜索,但所有解决方案都指向使用onSuccess钩子.这里的任何指针都表示赞赏
meteor ×1