-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathexample.json
29 lines (27 loc) · 1.25 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
// course.json
"_bookmarking": {
"_isEnabled": true,
"_comment": "_level can be set to page, block, or component",
"_level": "page",
"_comment": "_location can be set to previous or furthest",
"_location": "previous",
"_showPrompt": true,
"_autoRestore": true,
"title": "Bookmarking",
"body": "Would you like to continue where you left off?",
"_buttons": {
"yes": "Yes",
"no": "No"
}
}
// contentObjects.json - will override course.json for each contentObject - _type "page" only, if set. Set _isEnabled false if no bookmarking on page
"_bookmarking": {
"_isEnabled": true,
"_comment": "_level can be set to inherit, page, block, or component",
"_level": "inherit"
}
// Unique element tag placement. Place a button in any compiled json field (e.g. attribute, displayTitle, body, instruction, etc)
"body": "<bookmarking />",
// Attribute labels that override course.json
"body": "<bookmarking location='previous' label='Resume' aria-label='Continue where you left off.' />",
"body": "<bookmarking location='furthest' label='Continue' aria-label='Navigate to your furthest point of progress.' />",