-
Notifications
You must be signed in to change notification settings - Fork 10
/
properties.schema
203 lines (203 loc) · 7.82 KB
/
properties.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"globals": {
"closeButton": {
"type": "string",
"default": "Select here to close the window.",
"title": "Close button ARIA label",
"inputType": "Text",
"translatable": true
},
"_navOrder": {
"type": "number",
"default": "Determines the order in which the object is displayed in the navigation bar. Negative numbers (e.g. -100) are left-aligned. Positive numbers (e.g. 100) are right-aligned.",
"title": "Close button Nav order",
"required": true,
"default": 150,
"inputType": "Text",
"validators": []
},
"navLabel": {
"type": "string",
"required": true,
"default": 150,
"inputType": "Text",
"translatable": true
},
"_navTooltip": {
"type": "object",
"title": "Navigation tooltip",
"properties": {
"_isEnabled": {
"type": " boolean",
"title": "Enable tooltip for navigation button",
"default": true,
"inputType": "Checkbox",
"validators": [],
"required": true
},
"text": {
"type": "string",
"title": "Tooltip text",
"default": "Close",
"inputType": "Text",
"required": true
}
}
}
},
"properties": {
"pluginLocations": {
"type": "object",
"properties": {
"course": {
"type": "object",
"properties": {
"_close": {
"type": "object",
"legend": "Close",
"properties": {
"_isEnabled": {
"type": "boolean",
"required":true,
"default": true,
"title": "Enabled?",
"inputType": "Checkbox",
"validators": []
},
"_button": {
"type": "object",
"title": "Button",
"properties": {
"_isEnabled": {
"type": "boolean",
"default": true,
"title": "Enabled?",
"inputType": "Checkbox",
"help": "Set to 'true' to add a close button to the navigation bar"
},
"_closeViaLMSFinish": {
"type": "boolean",
"default": false,
"title": "Close via LMSFinish?",
"inputType": "Checkbox",
"help": "Enables closing the course via the SCORM 'finish' function rather than by closing the window - useful for LMSes that don't open the course in a new window or don't allow the course window to be closed via JavaScript."
},
"navigationAriaLabel": {
"type": "string",
"default": "Close course button",
"title": "Navigation button alt text",
"inputType": "Text",
"required": true,
"translatable": true
},
"_notifyPromptIfIncomplete": {
"type": "object",
"title": "Notify prompt if incomplete",
"properties": {
"_isEnabled": {
"type": "boolean",
"default": false,
"title": "Enabled?",
"inputType": "Checkbox",
"help": "Set to true to display a notify prompt if the close button is selected while the course is incomplete"
},
"title": {
"type": "string",
"default": "Confirm close",
"inputType": "Text",
"help": "Enter the prompt title",
"translatable": true
},
"body": {
"type": "string",
"default": "Are you sure you want to exit the course?",
"inputType": "TextArea",
"help": "Enter the prompt message",
"translatable": true
},
"confirm": {
"type": "string",
"default": "Exit course",
"inputType": "Text",
"help": "Enter the confirm button text",
"translatable": true
},
"cancel": {
"type": "string",
"default": "Cancel",
"inputType": "Text",
"help": "Enter the cancel button text",
"translatable": true
}
}
},
"_notifyPromptIfComplete": {
"type": "object",
"title": "Notify prompt if complete",
"properties": {
"_isEnabled": {
"type": "boolean",
"default": false,
"title": "Enabled?",
"inputType": "Checkbox",
"help": "Set to 'true' to display a notify prompt if the close button is selected after the course has been completed"
},
"title": {
"type": "string",
"default": "Confirm close",
"inputType": "Text",
"help": "Enter the prompt title",
"translatable": true
},
"body": {
"type": "string",
"default": "Are you sure you want to exit the course?",
"inputType": "TextArea",
"help": "Enter the prompt message",
"translatable": true
},
"confirm": {
"type": "string",
"default": "Exit course",
"inputType": "Text",
"help": "Enter the confirm button text",
"translatable": true
},
"cancel": {
"type": "string",
"default": "Cancel",
"inputType": "Text",
"help": "Enter the cancel button text",
"translatable": true
}
}
}
}
},
"browserPromptIfIncomplete": {
"type": "string",
"default": "",
"title": "Browser prompt if incomplete",
"inputType": "Text",
"help": "Enter text to display a browser dialog if the window is closed while the course is incomplete",
"translatable": true
},
"browserPromptIfComplete": {
"type": "string",
"default": "",
"title": "Browser prompt if complete",
"inputType": "Text",
"help": "Enter text to display a browser dialog if the window is closed after the course has been completed",
"translatable": true
}
}
}
}
}
}
}
}
}