22
22
id: sectionsTemplate
24
24
header: PageHeader {
25
26
title: sectionsTemplate.title
26
sections.model: ["first", "second", "third"]
33
model: h.showManySections ? sectionsTemplate.manyActions
34
: sectionsTemplate.fewActions
36
property bool showManySections: false
37
trailingActionBar.actions: [
39
iconName: h.showManySections ? "view-collapse" : "view-expand"
40
text: h.showManySections ? "less" : "more"
41
onTriggered: h.showManySections = !h.showManySections;
46
property list<Action> fewActions: [
47
Action { text: "One" },
48
Action { text: "Two" },
49
Action { text: "Three" }
52
property var manyActions: [
53
"one", "two", "three", "four", "five", "six", "seven", "eight", "nine",
54
"ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen",
55
"sixteen", "seventeen", "eighteen", "nineteen", "twenty"
31
60
className: "Sections"
34
63
title: i18n.tr("Enabled")
38
Action { text: "one" },
39
Action { text: "two" },
40
Action { text: "three" }
45
title: i18n.tr("Disabled")
48
model: ["one", "two", "three"]
66
actions: sectionsTemplate.fewActions
70
title: i18n.tr("Disabled")
73
model: sectionsTemplate.fewActions
80
title: "Scrollable sections"
84
title: i18n.tr("Enabled")
87
model: sectionsTemplate.manyActions
92
title: i18n.tr("Disabled")
95
model: sectionsTemplate.manyActions