diff --git a/src/AppMenu.vue b/src/AppMenu.vue
index 8e230406c..26bf82378 100755
--- a/src/AppMenu.vue
+++ b/src/AppMenu.vue
@@ -60,10 +60,11 @@
Carousel
-
-
-
DataTable
+
DataTable
+
+
+ - Documentation
- Basic
- Dynamic
- Templating
@@ -89,7 +90,7 @@
- Crud
-
+
DataView
FullCalendar
@@ -97,21 +98,24 @@
OrganizationChart
Paginator
PickList
-
-
-
Tree
+
Tree
+
+
+ - Documentation
- Selection
- Lazy
- Templating
- Filter
-
-
-
-
TreeTable
+
+
+
TreeTable
+
+
+ - Documentation
- Templating
- Size
- Paginator
@@ -124,7 +128,7 @@
- Responsive
-
+
@@ -206,10 +210,10 @@
Image
-
-
-
Galleria
-
+ Galleria
+
+
+
- Documentation
- Basic
- Indicator
@@ -221,11 +225,9 @@
- Caption
-
+
-
-
Misc
@@ -250,12 +252,14 @@ export default {
},
data() {
return {
- activeMenuIndex: null
+ activeSubmenus: {}
}
},
methods: {
- toggleMenu(event, index) {
- this.activeMenuIndex = (this.activeMenuIndex === index) ? null : index;
+ toggleSubmenu(event, name) {
+ this.activeSubmenus[name] = this.activeSubmenus[name] ? false: true;
+ this.activeSubmenus = {...this.activeSubmenus};
+ event.preventDefault();
}
}
}
diff --git a/src/assets/styles/app/_menu.scss b/src/assets/styles/app/_menu.scss
index 55178b1ea..98332d9cf 100644
--- a/src/assets/styles/app/_menu.scss
+++ b/src/assets/styles/app/_menu.scss
@@ -41,6 +41,7 @@
padding: .5rem;
border-radius: 3px;
transition: background-color .2s;
+ cursor: pointer;
&:hover {
background-color: var(--layer-2);