-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.qml
50 lines (44 loc) · 1.26 KB
/
help.qml
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
import bb.cascades 1.0
Page {
titleBar: TitleBar {
title : "Help"
}
Container {
background:
Color.create ("1F1F1F");
SegmentedControl {
Option {
id: option1
text: "Instructions"
selected: true
}
Option {
id: option2
text: "Information"
}
Option {
id: option3
text: "Help"
}
onSelectedOptionChanged: {
// Use an if statement to change the text style of the
// Label based on the selection option
if (selectedOption == option1) {
webster.url="local:///assets//instructions.html";
} else if (selectedOption == option2) {
webster.url = "local:///assets//informationnative.html";
}
else if(selectedOption == option3) {
webster.url = "local:///assets//help.html";
}
}
}
ScrollView {
id: scrollView
WebView {
id: webster
url: "local:///assets//instructions.html";
}
}
}
}