-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfields.json
63 lines (63 loc) · 1.69 KB
/
fields.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"fields": [
{
"type": "NumberField",
"name": "age",
"label": "Age",
"required": false,
"widget": "TextInput"
},
{
"type": "CharField",
"name": "planet",
"label": "Planet",
"required": false,
"widget": "TextInput"
},
{
"type": "DateField",
"name": "tage",
"label": "Tage",
"required": false,
"widget": "DatePicker"
},
{
"type": "RadioSelectField",
"name": "my_radio",
"label": "My Radio",
"required": true,
"widget": "RadioSelect",
"choices": [
{"value":"option1", "label":"Option 1"},
{"value":"option2", "label":"Option 2"},
{"value":"option3", "label":"Option 3"}
]
},
{
"type": "BooleanField",
"name": "is_checked",
"label": "Is Checked?",
"required": false,
"widget": "CheckboxInput"
},
{
"type": "CharField",
"name": "color",
"label": "Color",
"required": false,
"widget": "TextInput"
},
{
"type": "ChoiceField",
"name": "my_category",
"label": "MyCategory",
"choices": [
{"value":"Food", "label":"Food"},
{"value":"Clothing", "label":"Clothing"},
{"value":"Electronics", "label":"Electronics"}
],
"required": false,
"widget": "Select"
}
]
}