aboutsummaryrefslogtreecommitdiff
path: root/examples/MenuSection.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/MenuSection.qml')
-rw-r--r--examples/MenuSection.qml29
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/MenuSection.qml b/examples/MenuSection.qml
new file mode 100644
index 0000000..2a1b6c9
--- /dev/null
+++ b/examples/MenuSection.qml
@@ -0,0 +1,29 @@
+import QtQuick 1.1
+import Ubuntu.Components 0.1
+import Ubuntu.Components.ListItems 0.1 as ListItem
+
+
+Item {
+ property variant menu
+ width: parent.width
+ height: contents.height
+
+ Column {
+ id: contents
+ width: parent.width
+
+ ListItem.Header {
+ text: menu.label
+ }
+
+ Repeater {
+ model: menu ? menu.linkSection : undefined
+
+ MenuFactory {
+ menu: model
+ }
+ }
+
+ ListItem.Divider { }
+ }
+}