-
Notifications
You must be signed in to change notification settings - Fork 288
/
model.schema
152 lines (152 loc) · 4.07 KB
/
model.schema
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"$ref": "http://localhost/system/trackedObject.schema",
"properties": {
"_componentType": {
"type": "objectid",
"required": true,
"ref": "componenttype",
"editorOnly": true
},
"_type": {
"type": "string",
"id": "http://jsonschema.net/_type"
},
"_component": {
"type": "string",
"required": true,
"default": ""
},
"_layout": {
"type": "string"
},
"_classes": {
"type": "string",
"default": "",
"isSetting": true,
"inputType": "Text",
"validators": [],
"title": "Classes"
},
"_isOptional": {
"type": "boolean",
"default": false,
"isSetting": true,
"inputType": "Checkbox",
"validators": [],
"title": "Is this optional?",
"help": "An optional component does not have to be completed by the user."
},
"_isAvailable": {
"type": "boolean",
"default": true,
"isSetting": true,
"inputType": "Checkbox",
"validators": [],
"title": "Is this available?",
"help": "Controls whether this component is available in the course or not."
},
"_isHidden": {
"type": "boolean",
"default": false,
"isSetting": true,
"inputType": "Checkbox",
"validators": [],
"title": "Is this hidden?",
"help": "Enabling this is equivalent to applying the CSS 'display:none' to the component."
},
"_isVisible": {
"type": "boolean",
"default": true,
"isSetting": true,
"inputType": "Checkbox",
"validators": [],
"title": "Is this visible?",
"help": "Disabling this is equivalent to applying the CSS 'visibility:hidden' to the component."
},
"_parentId": {
"type": "objectid",
"required": true
},
"_courseId": {
"type": "objectid",
"required": true,
"editorOnly": true
},
"title": {
"type": "string",
"required": true,
"default": "New Component Title",
"inputType": "Text",
"validators": ["required"],
"translatable": true
},
"displayTitle": {
"type": "string",
"required": false,
"default": "New Component Title",
"inputType": "DisplayTitle",
"validators": [],
"help": "When viewing a component - this is the title that will be displayed",
"translatable": true
},
"body":{
"type": "string",
"default" : "",
"inputType": "TextArea",
"validators": [],
"translatable": true
},
"_onScreen": {
"type": "object",
"title": "On-screen classes",
"help": "These settings allow you to attach classes to the component when it is within the browser's viewport; helpful for running CSS-based animations on components as they scroll into view.",
"properties": {
"_isEnabled": {
"type": "boolean",
"default": false,
"isSetting": true,
"inputType": "Checkbox",
"validators": [],
"title": "Enabled?"
},
"_classes": {
"type": "string",
"default": "",
"isSetting": true,
"required": false,
"inputType": "Text",
"validators": [],
"title": "Classes",
"help": "The CSS class(es) to add to the component element."
},
"_percentInviewVertical": {
"type": "number",
"required": false,
"default": 50,
"isSetting": true,
"title": "Percent in view",
"inputType": "Number",
"validators": ["number"],
"help": "Controls what percentage of the component's height needs to be in the viewport in order for the CSS class(es) to be added."
}
}
},
"_extensions": {
"type": "object"
},
"themeSettings": {
"type": "object"
},
"properties" : {
"type": "object"
},
"_colorLabel": {
"type": "string",
"required": false,
"editorOnly": true
}
}
}