cost 313 ms
基於“oneOf”選擇的數組內的 JSON 模式有條件

[英]JSON schema conditional within array based on "oneOf" selection

我想根據數組中的選擇顯示表單字段,以便能夠根據選擇動態添加項目。 什么有效: 沒有圍繞這個工作的數組。 請參見下面的代碼: 什么不起作用: 但是一旦我在它周圍包裹一個數組,條件就不再起作用了。 我還嘗試了以下條件: "return model[arrayIndex].accessory === 't ...

擴展 $ref 對象屬性

[英]Extend $ref object properties

我正在使用 JSON 模式來構建表單,並且我在“定義”中有一個對象,我在模式的兩個不同位置使用 $ref 引用它。 在其中一個實例中,我需要向引用的對象添加另一個屬性,我該如何實現? ...

Angular JSON Schema Form 更改模型數據不會更新表單

[英]Angular JSON Schema Form changing model data does not update the form

我正在使用Angular JSON Schema Form來構建一個帶有模型的表單,該模型可以在選擇不同的選項時發生變化。 我遇到的問題是,即使認為我的組件中的模型變量發生了變化,表單也不會重新加載其值。 這是我的 AJSF: ...

Angular 模式表單 - 如果 Integer 字段不是 Null,則需要字段

[英]Angular Schema Form - Require Field if Integer Field is Not Null

我正在嘗試使用 Angular JSON 模式表單創建一個表單。 我希望在填充另一個字段(number1)時需要一個字段(dropdown1)。 我能夠在SchemaForm.io Sandbox中獲得以下表單 + 架構,但是當我將其放入我的站點時,下拉字段丟失。 這是我的架構: } 這是我的表格 ...

Angular-6-JSON 模式表單錯誤:嵌套數組 getControl 錯誤:無法在 FormGroup 中找到“0”項

[英]Angular-6-JSON schema form Error: Nested Arrays getControl error: Unable to find "0" item in FormGroup

您好,我目前正在開發一個使用JSON 模式形式的項目 對具有遞歸架構引用的嵌套數組使用布局時,不斷收到以下錯誤 嵌套數組 getControl 錯誤:無法在 FormGroup 中找到“0”項。 示例: https : //stackblitz.com/edit/angular-c1mzvk 遞 ...

提交后無法清除 angular-json-schema-form

[英]Can't clear the angular-json-schema-form after submitting

我正在使用 json-schema-form 構建一個表單,並且正在使用這個庫。 https://www.npmjs.com/package/angular6-json-schema-form 這看起來不錯,但我有一個問題。 提交后,我想清空表格,但是不可能。 我在文檔中找不到方法,也搜索了st ...

我需要使用遞歸在 angular 6 中創建行和列,其中行可以具有任意數量的行

[英]I need to make rows and columns in angular 6 using recursion in which row can columns and columns have any numbers of row

我嘗試使用動態 HTML 制作它,但我無法在動態 HTML 中調用點擊事件。 這是我自己嘗試的 我的.html文件 這種類型的 JSON 用於制作行和列,我們的 JSON 中也有標識符和行列檢查。 請幫助我卡在這里太糟糕了,我需要在json的基礎上制作行列網格 ...

嘗試動態更新生成的 angular6-json-schema-form

[英]Trying to update generated angular6-json-schema-form on the fly

我正在嘗試使用 angular6-json-schema-form 在我的 angular 8 應用程序中顯示不同的表單。 我創建了一個 FormTemplate 模型,該模型包含有關需要顯示的表單的一些屬性,並使該對象成為可觀察對象,並通過帶有符號的共享服務使其可用 在我的不同組件中,我正在 ...

Angular 6:從獲取的API中使用Json顯示圖像時出錯

[英]Angular 6: Error in displaying images using Json from fetched API

我正在嘗試從Angular 6中的Pexel API獲取圖像。我正確地從API獲取了響應,我可以在console.log中看到它。 我在訪問獲取的響應的URL時遇到困難,因此我無法在網頁中顯示圖像。 我嘗試了訪問JSON的常規方法。 我正在嘗試使用以下HTML中的photos對象訪 ...

如何配置表單字段是否需要驗證或是否不使用屬性文件

[英]How to configure form field required validation required or not using property file

如何配置表單字段是否需要驗證或是否不使用屬性文件。 例如:我們有很多表格字段。 姓名,年齡,地址 使用配置文件需要輸入名稱和年齡。 以后如果需要將年齡設為可選。 我們該如何存檔。 ...

光標在Angular6 Json Schema Form輸入字段中跳到結尾

[英]Cursor jumps to the end in Angular6 Json Schema Form input field

我的表單是由Angular6-Json-Schema-Form庫生成的,我遇到的問題是,每當我在普通輸入字段中鍵入內容時,每按一次鍵,光標就會立即跳到文本的末尾。 我還嘗試將布局框架從Material切換到Bootstrap3 / 4到無框架 ,但沒有成功。 最終,我逐步完成了在該對 ...

Angular 6 firebase數據庫在我的結構中有多個子鍵

[英]Angular 6 firebase database having multiple child key like in my structure

在我的Firebase數據庫結構中,我需要將此發貨表中的產品檢索到我的Angular 6 HTML表格格式中,我只訪問發貨數據,但我無法訪問產品子數據。 它說錯誤:找不到'對象'類型的不同支持對象'[object Object]'。 NgFor僅支持綁定到諸如Arrays之類的Iterabl ...

項目數組的Angular6 JSON模式表單

[英]Angular6 JSON schema form for Array of Items

我正在為我的應用程序嘗試Angular6 JSON形式,並陷入了具有數組模式的問題 基本布局看起來像 但是我沒有得到預期的結果,那就是Form已預先填充了數據 請參閱: https : //hamidihamza.com/Angular6-json-schema-form/ ...

如何在角度中使用* ngFor遍歷“帶有數組的對象”?

[英]How to iterate through “Object carrying an array” using *ngFor in angular?

我正在嘗試遍歷包含數組的對象,但收到錯誤消息“找不到類型為'object'的其他支持對象'[object Object]'。NgFor僅支持綁定到Iterables,例如Arrays。” 以下是我的json響應: 模板代碼: 誰能建議需要進行哪些更改才能遍歷數據? ...

無法從角度6的共享服務獲取數據

[英]unable get data from shared service in angular 6

我正在嘗試使用一種服務將json數據從一個組件共享到另一個組件(例如父級到子級)。我在該服務中有兩種方法,一種用於setJsonData,另一種是getJson Data。 服務等級 父組件 子組件 上面的代碼我可以使用setJsonData函數設置數據。當我嘗試使 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM