-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproperties.schema
176 lines (176 loc) · 6.39 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
{
"type": "object",
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"$ref": "http://localhost/plugins/content/component/model.schema",
"required": false,
"globals": {
"openButtonText": {
"type": "string",
"title": "Button ARIA label",
"required": true,
"default": "Open hint",
"inputType": "Text",
"validators": [],
"translatable": true
}
},
"properties": {
"pluginLocations": {
"type": "object",
"required": true,
"properties": {
"config": {
"type": "object"
},
"course": {
"type": "object"
},
"contentobject": {
"type": "object"
},
"article": {
"type": "object"
},
"block": {
"type": "object"
},
"component": {
"type": "object",
"properties": {
"_hint": {
"type": "object",
"required": false,
"legend": "Hint",
"properties": {
"_isEnabled": {
"type": "boolean",
"default": false,
"title": "Is enabled",
"help": "Apply hint button to component.",
"inputType": "Checkbox"
},
"title": {
"type": "string",
"required": false,
"default": "",
"title": "Title",
"inputType": "Text",
"validators": [],
"translatable": true,
"help": "Title displayed in the popup"
},
"altTitle": {
"type": "string",
"required": false,
"default": "",
"title": "Alternative title text",
"inputType": "Text",
"validators": [],
"translatable": true,
"help": "Text read out by screen readers if no visual title is included in the popup"
},
"body": {
"type": "string",
"required": true,
"default": "",
"title": "Body",
"inputType": "Text",
"validators": [],
"translatable": true,
"help": "Body text displayed in the popup"
},
"_imageAlignment": {
"type": "string",
"required": false,
"default": "right",
"inputType": {"type":"Select", "options":["left","top","right","bottom"]},
"title": "Image alignment",
"help": "Defines the alignment of the pop up image. Left: Image aligned to the left of the text area. Top: Image aligned above the text area. Right: Image aligned to the right of the text area. Bottom: Image aligned below the text area. The default alignment is `right`."
},
"_graphic": {
"type": "object",
"required": false,
"title": "Graphic",
"properties": {
"_src": {
"type": "string",
"required": false,
"default": "",
"inputType": "Asset:image",
"help": "Image displayed in the popup"
},
"alt": {
"type": "string",
"required": false,
"default": "",
"title": "Alternative text",
"inputType": "Text",
"validators": [],
"help": "A description of the image; required when it has meaning that must be conveyed to the learner. For 'decorative' images, leave this blank.",
"translatable": true
},
"attribution": {
"type": "string",
"required": false,
"default": "",
"inputType": "Text",
"validators": [],
"help": "Text to be displayed as an attribution for the image",
"translatable": true
}
}
},
"_button": {
"type": "object",
"required": false,
"title": "Hint button",
"properties": {
"_iconClass": {
"type": "string",
"required": false,
"default": "",
"title": "Icon class",
"inputType": "Text",
"validators": [],
"help": "Icon that displays on the button. Optional, use with/without text. CSS class name must be pre-defined."
},
"_alignIconRight": {
"type": "boolean",
"required": false,
"default": true,
"title": "Align icon right",
"inputType": "Checkbox",
"validators": [],
"help": "Defines whether the icon is aligned to the left or right of the text."
},
"text": {
"type": "string",
"required": false,
"default": "Hint",
"title": "Button text",
"inputType": "Text",
"validators": [],
"translatable": true,
"help": "Text that displays on the button. Optional, use with/without an icon."
},
"ariaLabel": {
"type": "string",
"required": false,
"default": "",
"title": "ARIA label",
"inputType": "Text",
"validators": [],
"translatable": true,
"help": "Text read out by screen readers if no visual button text is set."
}
}
}
}
}
}
}
}
}
}
}