-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathexample.json
40 lines (39 loc) · 1.31 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
// To go on a course
{
"_id": "course",
"_type": "course",
"title": "",
"displayTitle": "",
"body": "",
"_triggered": {
"_isEnabled": true
}
}
// To be placed on a component
{
"_id":"c-05",
"_parentId":"b-05",
"_type":"component",
"_component":"text",
"_classes":"",
"_layout":"left",
"title":"Our first look at a component",
"body":"This component you're reading is a text component. All components take this form of a title and body - except a blank component. However it's important to realise that title and body attributes are not needed. <br><br>Take for instance the media component opposite or below on a smaller device - has no body attribute. Instead of the HTML being rendered Adapt simply doesn't render it. The title attribute is simply a break tag to push the media component level with the opposite component.",
"_triggered": {
"_isEnabled": true,
"showButton": {
"_top": "40%",
"_left": "15%",
"_right": "auto",
"_bottom": "auto",
"buttonText": "Click me to show"
},
"hideButton": {
"_top": "-2%",
"_left": "auto",
"_right": "0%",
"_bottom": "auto",
"buttonText": "Click me to hide"
}
}
}