diff --git a/src/components/contextmenu/ContextMenuSub.vue b/src/components/contextmenu/ContextMenuSub.vue
index b8baffe8d..16acc5957 100755
--- a/src/components/contextmenu/ContextMenuSub.vue
+++ b/src/components/contextmenu/ContextMenuSub.vue
@@ -95,7 +95,7 @@ export default {
if (this.activeItem && item === this.activeItem)
this.activeItem = null;
else
- this.activeItem = item;
+ this.activeItem = item;
}
if (!item.items) {
diff --git a/src/components/menubar/MenubarSub.vue b/src/components/menubar/MenubarSub.vue
index 4f8631732..10827b925 100755
--- a/src/components/menubar/MenubarSub.vue
+++ b/src/components/menubar/MenubarSub.vue
@@ -117,7 +117,7 @@ export default {
if (this.activeItem && item === this.activeItem)
this.activeItem = null;
else
- this.activeItem = item;
+ this.activeItem = item;
}
if (!item.items) {
diff --git a/src/components/tieredmenu/TieredMenuSub.vue b/src/components/tieredmenu/TieredMenuSub.vue
index 17361a659..7b7071005 100755
--- a/src/components/tieredmenu/TieredMenuSub.vue
+++ b/src/components/tieredmenu/TieredMenuSub.vue
@@ -113,7 +113,7 @@ export default {
if (this.activeItem && item === this.activeItem)
this.activeItem = null;
else
- this.activeItem = item;
+ this.activeItem = item;
}
if (!item.items) {
diff --git a/src/views/contextmenu/ContextMenuDoc.vue b/src/views/contextmenu/ContextMenuDoc.vue
index e016bb548..edf59ca96 100755
--- a/src/views/contextmenu/ContextMenuDoc.vue
+++ b/src/views/contextmenu/ContextMenuDoc.vue
@@ -337,6 +337,10 @@ export default {
p-menuitem |
Menuitem element. |
+
+
+ p-menuitem-active |
+ Active menuitem element. |
p-menuitem-text |
diff --git a/src/views/megamenu/MegaMenuDoc.vue b/src/views/megamenu/MegaMenuDoc.vue
index 308797d58..cdd288df9 100755
--- a/src/views/megamenu/MegaMenuDoc.vue
+++ b/src/views/megamenu/MegaMenuDoc.vue
@@ -153,7 +153,7 @@ export default {
Two slots named "start" and "end" are provided to embed content before or after the items. In additon MegaMenu, offers item customization with the item template that receives the menuitem instance from the model as a parameter.
<MegaMenu :model="items">
- <template #start>
+ <template #start>
Before
</template>
<template #item="{item}">
@@ -170,7 +170,7 @@ export default {
<MegaMenu :model="items">
<template #item="{item}">
- <router-link :to="item.to" custom v-slot="{href, route, navigate, isActive, isExactActive}">
+ <router-link :to="item.to" custom v-slot="{href, route, navigate, isActive, isExactActive}">
<a :href="href" @click="navigate" :class="{'active-link': isActive, 'active-link-exact": isExactActive}>{{route.fullPath}}</a>
</router-link>
</template>
@@ -278,6 +278,10 @@ export default {
p-menuitem |
Menuitem element. |
+
+ p-menuitem-active |
+ Active menuitem element. |
+
p-menuitem-text |
Label of a menuitem. |
diff --git a/src/views/menubar/MenubarDoc.vue b/src/views/menubar/MenubarDoc.vue
index 29a2d520a..1e15ef84f 100755
--- a/src/views/menubar/MenubarDoc.vue
+++ b/src/views/menubar/MenubarDoc.vue
@@ -29,132 +29,129 @@ export default {
return {
items: [
{
- label:'File',
- icon:'pi pi-fw pi-file',
- items:[
- {
- label:'New',
- icon:'pi pi-fw pi-plus',
- items:[
- {
- label:'Bookmark',
- icon:'pi pi-fw pi-bookmark'
- },
- {
- label:'Video',
- icon:'pi pi-fw pi-video'
- },
-
- ]
- },
- {
- label:'Delete',
- icon:'pi pi-fw pi-trash'
- },
- {
- separator:true
- },
- {
- label:'Export',
- icon:'pi pi-fw pi-external-link'
- }
- ]
+ label:'File',
+ icon:'pi pi-fw pi-file',
+ items:[
+ {
+ label:'New',
+ icon:'pi pi-fw pi-plus',
+ items:[
+ {
+ label:'Bookmark',
+ icon:'pi pi-fw pi-bookmark'
+ },
+ {
+ label:'Video',
+ icon:'pi pi-fw pi-video'
+ }
+ ]
+ },
+ {
+ label:'Delete',
+ icon:'pi pi-fw pi-trash'
+ },
+ {
+ separator:true
+ },
+ {
+ label:'Export',
+ icon:'pi pi-fw pi-external-link'
+ }
+ ]
},
{
- label:'Edit',
- icon:'pi pi-fw pi-pencil',
- items:[
- {
- label:'Left',
- icon:'pi pi-fw pi-align-left'
- },
- {
- label:'Right',
- icon:'pi pi-fw pi-align-right'
- },
- {
- label:'Center',
- icon:'pi pi-fw pi-align-center'
- },
- {
- label:'Justify',
- icon:'pi pi-fw pi-align-justify'
- },
-
- ]
+ label:'Edit',
+ icon:'pi pi-fw pi-pencil',
+ items:[
+ {
+ label:'Left',
+ icon:'pi pi-fw pi-align-left'
+ },
+ {
+ label:'Right',
+ icon:'pi pi-fw pi-align-right'
+ },
+ {
+ label:'Center',
+ icon:'pi pi-fw pi-align-center'
+ },
+ {
+ label:'Justify',
+ icon:'pi pi-fw pi-align-justify'
+ }
+ ]
},
{
- label:'Users',
- icon:'pi pi-fw pi-user',
- items:[
- {
- label:'New',
- icon:'pi pi-fw pi-user-plus',
+ label:'Users',
+ icon:'pi pi-fw pi-user',
+ items:[
+ {
+ label:'New',
+ icon:'pi pi-fw pi-user-plus',
- },
- {
- label:'Delete',
- icon:'pi pi-fw pi-user-minus',
+ },
+ {
+ label:'Delete',
+ icon:'pi pi-fw pi-user-minus',
- },
- {
- label:'Search',
- icon:'pi pi-fw pi-users',
- items:[
- {
- label:'Filter',
- icon:'pi pi-fw pi-filter',
- items:[
- {
- label:'Print',
- icon:'pi pi-fw pi-print'
- }
- ]
- },
- {
- icon:'pi pi-fw pi-bars',
- label:'List'
- }
- ]
- }
- ]
+ },
+ {
+ label:'Search',
+ icon:'pi pi-fw pi-users',
+ items:[
+ {
+ label:'Filter',
+ icon:'pi pi-fw pi-filter',
+ items:[
+ {
+ label:'Print',
+ icon:'pi pi-fw pi-print'
+ }
+ ]
+ },
+ {
+ icon:'pi pi-fw pi-bars',
+ label:'List'
+ }
+ ]
+ }
+ ]
},
{
- label:'Events',
- icon:'pi pi-fw pi-calendar',
- items:[
- {
- label:'Edit',
- icon:'pi pi-fw pi-pencil',
- items:[
- {
- label:'Save',
- icon:'pi pi-fw pi-calendar-plus'
- },
- {
- label:'Delete',
- icon:'pi pi-fw pi-calendar-minus'
- },
-
- ]
- },
- {
- label:'Archieve',
- icon:'pi pi-fw pi-calendar-times',
- items:[
- {
- label:'Remove',
- icon:'pi pi-fw pi-calendar-minus'
- }
- ]
- }
- ]
+ label:'Events',
+ icon:'pi pi-fw pi-calendar',
+ items:[
+ {
+ label:'Edit',
+ icon:'pi pi-fw pi-pencil',
+ items:[
+ {
+ label:'Save',
+ icon:'pi pi-fw pi-calendar-plus'
+ },
+ {
+ label:'Delete',
+ icon:'pi pi-fw pi-calendar-minus'
+ }
+ ]
+ },
+ {
+ label:'Archieve',
+ icon:'pi pi-fw pi-calendar-times',
+ items:[
+ {
+ label:'Remove',
+ icon:'pi pi-fw pi-calendar-minus'
+ }
+ ]
+ }
+ ]
},
{
- label:'Quit',
- icon:'pi pi-fw pi-power-off'
+ label:'Quit',
+ icon:'pi pi-fw pi-power-off'
}
- ]
+ ]
}
}
}
@@ -209,7 +206,7 @@ export default {
null |
An array of menuitems. |
-
+
exact |
boolean |
true |
@@ -219,31 +216,31 @@ export default {
- Slots
-
-
-
-
- Name |
- Parameters |
-
-
-
-
- start |
- - |
-
-
- end |
- - |
-
-
- item |
- item: Menuitem instance |
-
-
-
-
+ Slots
+
+
+
+
+ Name |
+ Parameters |
+
+
+
+
+ start |
+ - |
+
+
+ end |
+ - |
+
+
+ item |
+ item: Menuitem instance |
+
+
+
+
Styling
Following is the list of structural style classes, for theming classes visit theming page.
@@ -271,6 +268,10 @@ export default {
p-menuitem |
Menuitem element. |
+
+
+ p-menuitem-active |
+ Active menuitem element. |
p-menuitem-text |
diff --git a/src/views/tieredmenu/TieredMenuDoc.vue b/src/views/tieredmenu/TieredMenuDoc.vue
index d70dba958..c4b58946b 100755
--- a/src/views/tieredmenu/TieredMenuDoc.vue
+++ b/src/views/tieredmenu/TieredMenuDoc.vue
@@ -323,6 +323,10 @@ toggle(event) {
p-menuitem |
Menuitem element. |
+
+ p-menuitem-active |
+ Active menuitem element. |
+
p-menuitem-text |
Label of a menuitem. |