meteor-autoform

    0熱度

    1回答

    使用AutoForm掛鉤,可以捕獲新創建的文檔的標識。但更新後,如果更新成功,掛鉤返回'1'。 如何訪問我正在處理的文檔的_id,以便成功更新後可以路由到單個文檔視圖? 下面的代碼工作的插入,而不是更新 AutoForm.addHooks('articleForm', { after: { insert: function(error, result) { if (

    1熱度

    1回答

    我使用的是collections2和meteor-cfs-autoform的模式,並使用cfs:gridfs存儲適配器包上傳和顯示圖像,但無法在模板中顯示圖像。可以爲您請告訴我我在做什麼錯誤及其解決方案。 collections.js Recipes = new Mongo.Collection('recipes'); Reviews = new Mongo.Collection('review

    0熱度

    1回答

    你好我有一個autoform quickfield。我需要輸入url,如果用戶輸入url以外的內容,它不應該允許,但我的驗證不起作用。下面 <div class="col s12"> <label for="article-type" class="article-label">Article Source</label> {{> afQuickField name='url'

    1熱度

    2回答

    我正在學習流星的繩索和丟失在這裏的一種。我正在使用collections2,autoform來構建我的應用程序。我想存儲集合以及用戶標識信息。因此,當我們從服務器檢索集合時,我只想顯示用戶創建的不是其他任何東西。這是架構。 ExercisesSchema = new SimpleSchema({ "name": { type: String, label: 'Na

    0熱度

    1回答

    我是MeteorJS dev開發的一款應用程序,當我在快速庫存應用程序中收集某些項目時,這是一個問題。 以下是錯誤: /home/operador/.meteor/packages/meteor-tool/.1.1.10.1kpywhr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib

    0熱度

    1回答

    在我的競爭架構中,我需要添加團隊列表。我已經定義了一個TeamSchema,並且我在該集合中添加了一些團隊。現在我想添加比賽並在比賽中添加球隊列表。 這是我的比賽模式看起來如何 Competitions = new Mongo.Collection("competitions"); var CompetitionsSchema = new SimpleSchema({ year: {

    1熱度

    1回答

    我正在試驗autoforms和html表中的數組字段。到目前爲止,我可以修改行並刪除它們,但在解決如何添加新行時遇到問題。添加按鈕似乎沒有做任何事情。 我迄今爲止代碼: {{#autoForm id="eventDatesForm" type="update" collection="Events" doc=this buttonContent="Save"}} <h2>Event

    1熱度

    1回答

    {{#autoForm schema="schema" id="submitoffer" type="method" meteormethod="submitoffer"}} {{> afQuickField name="startLocation"}} <input id="date" type="text" class="form-control datepicker"

    0熱度

    1回答

    我有一個autoform,我想要使用模式呈現。我有一個助手模板Template.name.helpers(返回模式{: Template.name.helpers({ getSchema: function() { var schema = new SimpleSchema({ location: { type: String, label:

    2熱度

    1回答

    我想創建一個窗體,以便在集合中的嵌套數組內插入一個新元素。 這裏是我的架構: Schemas.CampaignsSchema = new SimpleSchema({ 'name': { type: String } }); ​ Schemas.ElectionsSchema = new SimpleSchema({ 'campaigns': {