-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproperties.schema
101 lines (101 loc) · 3.61 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
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"required": false,
"properties": {
"pluginLocations": {
"type": "object",
"required": true,
"properties": {
"course": {
"type": "object",
"properties": {
"_definitions": {
"type": "object",
"required": false,
"legend": "Definitions",
"properties": {
"_isEnabled": {
"type": "boolean",
"required": true,
"default": false,
"title": "Add definition links to course words",
"inputType": "Checkbox",
"validators": [],
"help": "Controls whether the Definitions extension is enabled or disabled."
},
"title": {
"type": "string",
"default": "Definition",
"required": true,
"title": "Title",
"inputType": "Text",
"validators": ["required"],
"help": "The title for the pop up which displays when a definitions link is selected.",
"translatable": true
},
"body": {
"type": "string",
"default": "{{{word}}}: {{{definition}}}",
"required": false,
"title": "Body",
"inputType": "Text",
"validators": [],
"help": "The body content for the pop up which displays when a definitions link is selected.",
"translatable": true
},
"confirmText": {
"type": "string",
"default": "Close",
"required": false,
"title": "Confirm Text",
"inputType": "Text",
"validators": [],
"help": "Show a close button at the bottom of the popup rather than a cross at the top right.",
"translatable": true
},
"_items": {
"type": "array",
"required": true,
"title": "Items",
"items": {
"type": "object",
"required": false,
"properties": {
"words": {
"type": "array",
"required": false,
"title": "Words",
"items": {
"type": "string",
"required": false,
"default": "",
"title": "Word",
"inputType": "Text",
"validators": [],
"help": "The collection of word(s) to attach the associated definition to.",
"translatable": true
}
},
"definition": {
"type": "string",
"default": "",
"required": false,
"title": "Definition",
"inputType": "Text",
"validators": [],
"help": "The definition for the associated word(s).",
"translatable": true
}
}
}
}
}
}
}
}
}
}
}
}