-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
114 lines (114 loc) · 2.98 KB
/
schema.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"type": "component",
"metadata": {},
"schema": {
"name": "bb-component-SuperSideNavigation",
"friendlyName": "Super Side Navigation",
"description": "A Side Navigation / Item List component for Budibase.",
"icon": "RailLeft",
"styles": [ "size", "background", "border", "padding" ],
"hasChildren": true,
"showEmptyState": false,
"settings": [
{
"type": "select",
"key": "structureSource",
"label": "Structure Source",
"options": [
{ "label": "Data Provider", "value": "dataProvider" },
{ "label": "JSON", "value": "json"},
{ "label": "Custom", "value": "custom"}
],
"defaultValue":"json"
},
{
"type": "text",
"key": "staticStructure",
"label": "JSON Structure",
"dependsOn": { "setting": "structureSource", "value": "json" }
},
{
"section": true,
"name": "Sections Settings",
"dependsOn": { "setting": "structureSource", "value": "dataProvider" },
"settings": [
{
"type": "dataProvider",
"key": "dataProvider",
"label": "Data Provider"
},
{
"type": "field",
"label": "Section Key Column",
"key": "sectionColumnKey"
},
{
"type": "field",
"label": "Section Value Column",
"key": "sectionColumnValue"
},
{
"type": "field",
"label": "Item Column",
"key": "itemColumn",
"info": "Must be a Relationship Field"
},
{
"type": "select",
"key": "itemSorting",
"label" : "Sort Items",
"options" : [
{ "label" : "Ascending", "value": "ascending" },
{ "label" : "Descending", "value": "descending" },
{ "label" : "No Sorting", "value": "unsorted" }
]
}
]
},
{
"type": "boolean",
"key": "collapsible",
"label": "Collapsible Sections",
"defaultValue": false
},
{
"type": "options",
"key": "mainSections",
"label": "Main Sections"
},
{
"type": "boolean",
"key": "allCollapsed",
"label": "All Collapsed",
"defaultValue": false,
"dependsOn": "collapsible"
},
{
"type": "boolean",
"key": "hideEmpty",
"label": "Hide Empty Sections",
"defaultValue": false
},
{
"section": true,
"name": "On Item Click",
"settings": [
{
"type": "event",
"key": "onItemClick",
"context": [
{
"label": "Item Key",
"key": "itemKey"
},
{
"label": "Item Value",
"key": "itemValue"
}
]
}
]
}
]
}
}