summaryrefslogtreecommitdiffstats
path: root/library/Icinga/Web/Navigation/DropdownItem.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Icinga/Web/Navigation/DropdownItem.php')
-rw-r--r--library/Icinga/Web/Navigation/DropdownItem.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/library/Icinga/Web/Navigation/DropdownItem.php b/library/Icinga/Web/Navigation/DropdownItem.php
new file mode 100644
index 0000000..2342b96
--- /dev/null
+++ b/library/Icinga/Web/Navigation/DropdownItem.php
@@ -0,0 +1,20 @@
+<?php
+/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
+
+namespace Icinga\Web\Navigation;
+
+/**
+ * Dropdown navigation item
+ *
+ * @see \Icinga\Web\Navigation\Navigation For a usage example.
+ */
+class DropdownItem extends NavigationItem
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function init()
+ {
+ $this->children->setLayout(Navigation::LAYOUT_DROPDOWN);
+ }
+}