リスト

リストを表示するには、コンポーネントリストを使用します。

const listJSON =  {
    "component": "list", //tells the component name
    "data": "@languages", // an array of list items
},

ここで、言語は単純な文字列の配列です。 languages = ["English", "Hindi", "French"]
オブジェクトのリストをレンダリングする場合は、item config を使用して構造を指定できます。

const listJSON =  {
    "component": "list", //tells the component name
    "data": "@projects", // an array of list items
    "itemConfig": { // used to define the structure of the list items.
    "component": "widget",
    "id": "checkbox_label"
    }
},

通常、itemConfig は widget. ウィジェットの詳細については、次の URL を参照してください: ウィジェット

レンダリングされたリストは次のようになります。

リスト

recommendation-more-help
11125c99-e1a1-4369-b5d7-fb3098b9b178