forked from ExultCorp/adapt-quicknav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.json
executable file
·83 lines (80 loc) · 2.24 KB
/
example.json
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
// To go in the contentObject.json file for each page
"_quicknav": {
"_isEnabled": true,
"_isContinuous": "global", //global (loop through menus+pages) / local (loop through pages ) / false (disable next+prev buttons at start and end)
"_injectIntoSelector": "", //force append to selector instead of page
"_global": { //change the flow for global continuous
"_pageNext":"co-10", // remove if to follow normal flow
"_pagePrevious": "co-10" // remove if to follow normal flow
},
"_buttons": {
"_root": {
"_isHidden": false,
"text": "Go to main menu"
},
"_up": {
"_isHidden": false,
"text": "Back to menu"
},
"_previous": {
"_isHidden": false,
"text": "< Previous"
},
"_next": {
"_isHidden": false,
"text": "Next >"
}
},
"_isEnableNextOnCompletion": true,
"_lock": [
"co-05",
"co-10",
"co-15",
"co-20"
]
}
// Alternative theme using icons
"_quicknav": {
"_isEnabled": true,
"_isContinuous": "global",
"_injectIntoSelector": "",
"_global": {
"_pageNext":"co-10",
"_pagePrevious": "co-10"
},
"_buttons": {
"_hasIcons": true, // Add option and set to true to enable Quicknav icons
"_root": {
"_isHidden": false,
"text": "Menu",
"_icon": "icon-home" // Define using _icon for each button. Icon pulls from vanilla font set
},
"_up": {
"_isHidden": true,
"text": "Back to menu",
"_icon": "icon-home"
},
"_previous": {
"_isHidden": true,
"text": "Previous",
"_icon": "icon-controls-left"
},
"_next": {
"_isHidden": false,
"text": "Next",
"_icon": "icon-controls-right"
}
}
}
//to go in components.json
//if you want a component in which to place the quicknav, please add:
//NOTE: please remove _injectIntoSelector from above
{
"_id": "c-61",
"_parentId": "b-48",
"_type": "component",
"_component": "quicknav",
"_classes": "",
"_layout": "full",
"title": "c-48"
},