-
Notifications
You must be signed in to change notification settings - Fork 1
/
properties.schema
54 lines (54 loc) · 1.78 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
{
"type":"object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"$ref": "http://localhost/plugins/content/component/model.schema",
"properties":{
"_supportedLayout": {
"type": "string",
"required": true,
"enum": ["full-width", "half-width", "both"],
"default": "both",
"editorOnly": true
},
"_hoverText": {
"type": "string",
"required": false,
"inputType": "Text",
"title": "Hover Text",
"help": "Text to display when the user hovers over the button",
"default": "",
"validators": [],
"translatable": true
},
"_requirePageCompletion": {
"type": "boolean",
"required": true,
"inputType": {"type": "Boolean", "options": [true, false]},
"title": "Require Page Completion",
"help": "Require the page to be complete before enabling the next button",
"default": true
},
"_skipMenus": {
"type": "boolean",
"required": true,
"inputType": {"type": "Boolean", "options": [true, false]},
"title": "Skip Menus",
"help": "When enabled, the next button will only navigate to pages; if the next content object is a menu, it will display the first page of the menu instead (this setting is ignored if _nextPage is manually specified)",
"default": true
},
"_nextPage": {
"type": "string",
"required": false,
"inputType": "Text",
"title": "Override Next Page ID",
"help": "Specify the ID of the next content object (menu or page) to override the default behavior",
"default": "",
"validators": [{
"type": "regexp",
"regexp": "^[0-9a-f]{24}$",
"message": "This must be set to the ID number of another page or menu"
}]
}
}
}