-
Notifications
You must be signed in to change notification settings - Fork 301
/
Copy pathinputs.json
92 lines (92 loc) · 3.46 KB
/
inputs.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"date": "2016-09-19 11:01:05.886000",
"layout": "freeform",
"category": "Interactivity",
"modules": [
{
"family": "C3",
"name": "line - no inputs",
"height": 400,
"width": 500,
"dataSource": "http://127.0.0.1:5004/custom-inputs",
"override": false,
"guid": "a6eb10e7-26fa-7814-818a-3010292929c2",
"type": "line"
},
{
"family": "C3",
"name": "line - with inputs",
"height": 400,
"width": 500,
"dataSource": "http://127.0.0.1:5004/custom-inputs?override=true",
"override": true,
"guid": "a6eb10e7-26fa-7814-818a-3699b24415c5",
"type": "line",
"inputs": {
"btn_classes": ["btn", "btn-info", "btn-sm"],
"submit_text": "Submit",
"options": [
{
"type": "checkbox",
"name": "show_axes",
"default": true,
"validator_regex": null,
"label": "Show axes?"
},
{
"type": "radio",
"name": "starting_num",
"options": [
[0, 0],
[10, 10],
[20, 20],
[50, 50]
],
"default": 0,
"placeholder": "e.g. 10",
"validator_regex": null,
"input_classes": ["form-control"],
"label": "The lowest number to start from"
},
{
"type": "select",
"name": "range",
"options": [
[5, "Show 5"],
[10, "Show 10"],
[25, "Show 25"],
[50, "Show 50"],
[100, "Show 100"]
],
"default": 10,
"placeholder": "e.g. 10",
"validator_regex": null,
"input_classes": ["form-control", "input-sm"],
"label": "Number of results",
"help_text": "Change the number of results shown"
},
{
"type": "text",
"name": "prefix",
"default": 10,
"placeholder": "e.g. item #",
"validator_regex": null,
"input_classes": ["form-control", "input-sm"],
"label": "A prefix to use for each time"
},
{
"type": "number",
"name": "entries",
"placeholder": "e.g. 10",
"validator_regex": null,
"input_classes": ["form-control", "input-sm"],
"label": "Number of points",
"help_text": "Change the number of points per entry shown"
}
]
}
}
],
"id": "f01fab97-7e92-11e6-b71d-a0999b0aebbf",
"name": "Custom inputs demo"
}