Lista

Vi använder komponentlistan för att visa en lista.

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

Här är språk en enkel matris med strängar. languages = ["English", "Hindi", "French"]
Om vi vill återge en lista med objekt kan vi ange strukturen med objektkonfigurationen.

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"
    }
},

Oftast är itemConfig en widget. Om du vill veta mer om widgetar går du till widgetar

Den återgivna listan ser ut så här:

list

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