forked from adaptlearning/adapt-contrib-trickle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.json
More file actions
42 lines (40 loc) · 1.42 KB
/
example.json
File metadata and controls
42 lines (40 loc) · 1.42 KB
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
// TRICKLE STYLE BUTTON ON ALL ARTICLE BLOCKS
// put in article.json
"_trickle": {
"_isEnabled": true
}
// Manual Configuration Options
"_trickle": {
"_isEnabled": true,
"_autoScroll": true,
"_scrollDuration": 500,
"_onChildren": true,
"_scrollTo": "@block +1",
"_button": {
"_isEnabled": true,
"_comment": "_styleBeforeCompletion = hidden | visible",
"_styleBeforeCompletion": "hidden",
"_comment": "_styleAfterClick = hidden | disabled | scroll",
"_styleAfterClick": "hidden",
"_isFullWidth": true,
"_comment": "_autoHide = it is recommended this be left set to false in courses that need to be screenreader-compatible.",
"_autoHide": false,
"_className": "",
"_hasIcon": false,
"text": "Continue",
"startText": "Begin",
"finalText": "Finish",
"_component": "trickle-button"
},
"_stepLocking": {
"_isEnabled": true,
"_isCompletionRequired": true,
"_isLockedOnRevisit": false
}
}
// Override which completion data attribute is used to test when the
// trickle button should be displayed
// Put in config.json
"_trickle": {
"_completionAttribute": "_isInteractionComplete|_isComplete", //(default=_isComplete)
}