openai/chatkit-python

Public

mirrored fromhttps://github.com/openai/chatkit-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
778828a4fbce2d0e3232582de073e9a10275ad4c

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

tests/assets/widgets/list_view_with_data.json

77lines · modecode

1{
2 "type": "ListView",
3 "children": [
4 {
5 "type": "ListViewItem",
6 "key": "blue",
7 "gap": 5,
8 "onClickAction": {
9 "type": "line.select",
10 "payload": {
11 "id": "blue"
12 }
13 },
14 "children": [
15 {
16 "type": "Box",
17 "background": "blue-500",
18 "radius": "full",
19 "size": 25
20 },
21 {
22 "type": "Text",
23 "value": "Blue line",
24 "size": "sm"
25 }
26 ]
27 },
28 {
29 "type": "ListViewItem",
30 "key": "orange",
31 "gap": 5,
32 "onClickAction": {
33 "type": "line.select",
34 "payload": {
35 "id": "orange"
36 }
37 },
38 "children": [
39 {
40 "type": "Box",
41 "background": "orange-500",
42 "radius": "full",
43 "size": 25
44 },
45 {
46 "type": "Text",
47 "value": "Orange line",
48 "size": "sm"
49 }
50 ]
51 },
52 {
53 "type": "ListViewItem",
54 "key": "purple",
55 "gap": 5,
56 "onClickAction": {
57 "type": "line.select",
58 "payload": {
59 "id": "purple"
60 }
61 },
62 "children": [
63 {
64 "type": "Box",
65 "background": "purple-500",
66 "radius": "full",
67 "size": 25
68 },
69 {
70 "type": "Text",
71 "value": "Purple line",
72 "size": "sm"
73 }
74 ]
75 }
76 ]
77}
78