Skip to content

Commit 9601e31

Browse files
committed
feat: List to have multi-line sublabels and badge for card style
1 parent 6f37ae9 commit 9601e31

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/examples/kitchen-sink.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,22 @@
12491249
"sublabel": "Age: {{item.age}}",
12501250
"stamp": "{{formatDate(new Date(), 'DD/MM/YY HH:mm:ss')}}"
12511251
}
1252+
},
1253+
{
1254+
"id": "listCards",
1255+
"type": "List",
1256+
"listStyle": "card",
1257+
"arrayPath": "data.testData.table",
1258+
"templates": {
1259+
"label": "Name: {{item.name}}",
1260+
"sublabel": [
1261+
"multiline sublabels",
1262+
"Age: {{item.age}}",
1263+
"{{formatDate(new Date(), 'DD/MM/YY HH:mm:ss')}}"
1264+
],
1265+
"badge": "With a badge",
1266+
"badgeColor": "attention"
1267+
}
12521268
}
12531269
]
12541270
},

0 commit comments

Comments
 (0)