diff --git a/components/lib/contextmenu/ContextMenu.d.ts b/components/lib/contextmenu/ContextMenu.d.ts index 567f28182..bb718cf1c 100755 --- a/components/lib/contextmenu/ContextMenu.d.ts +++ b/components/lib/contextmenu/ContextMenu.d.ts @@ -182,6 +182,11 @@ export interface ContextMenuContext { * @defaultValue false */ focused: boolean; + /** + * Current disabled state of menuitem as a boolean. + * @defaultValue false + */ + disabled: boolean; } /** diff --git a/components/lib/contextmenu/ContextMenuSub.vue b/components/lib/contextmenu/ContextMenuSub.vue index a62a8dbde..95b400104 100755 --- a/components/lib/contextmenu/ContextMenuSub.vue +++ b/components/lib/contextmenu/ContextMenuSub.vue @@ -147,6 +147,7 @@ export default { item: processedItem, active: this.isItemActive(processedItem), focused: this.isItemFocused(processedItem), + disabled: this.isItemDisabled(processedItem), index } }); diff --git a/components/lib/megamenu/MegaMenu.d.ts b/components/lib/megamenu/MegaMenu.d.ts index 3ba805ae1..c86a2605f 100755 --- a/components/lib/megamenu/MegaMenu.d.ts +++ b/components/lib/megamenu/MegaMenu.d.ts @@ -189,6 +189,11 @@ export interface MegaMenuContext { * @defaultValue false */ focused: boolean; + /** + * Current disabled state of menuitem as a boolean. + * @defaultValue false + */ + disabled: boolean; } /** diff --git a/components/lib/megamenu/MegaMenuSub.vue b/components/lib/megamenu/MegaMenuSub.vue index 54b0fc0f3..b9c203ed9 100644 --- a/components/lib/megamenu/MegaMenuSub.vue +++ b/components/lib/megamenu/MegaMenuSub.vue @@ -158,7 +158,8 @@ export default { item: processedItem, index, active: this.isItemActive(processedItem), - focused: this.isItemFocused(processedItem) + focused: this.isItemFocused(processedItem), + disabled: this.isItemDisabled(processedItem) } }); }, diff --git a/components/lib/menu/Menu.d.ts b/components/lib/menu/Menu.d.ts index ea150b15a..e2d8a6bc2 100755 --- a/components/lib/menu/Menu.d.ts +++ b/components/lib/menu/Menu.d.ts @@ -155,6 +155,11 @@ export interface MenuContext { * @defaultValue false */ focused: boolean; + /** + * Current disabled state of menuitem as a boolean. + * @defaultValue false + */ + disabled: boolean; } /** diff --git a/components/lib/menu/Menuitem.vue b/components/lib/menu/Menuitem.vue index f19af7ad1..ac66e3903 100644 --- a/components/lib/menu/Menuitem.vue +++ b/components/lib/menu/Menuitem.vue @@ -60,7 +60,8 @@ export default { context: { item: this.item, index: this.index, - focused: this.isItemFocused() + focused: this.isItemFocused(), + disabled: this.isItemDisabled(processedItem) } }); }, diff --git a/components/lib/menubar/Menubar.d.ts b/components/lib/menubar/Menubar.d.ts index f75cd7451..c7e53861a 100755 --- a/components/lib/menubar/Menubar.d.ts +++ b/components/lib/menubar/Menubar.d.ts @@ -186,6 +186,11 @@ export interface MenubarContext { * @defaultValue false */ focused: boolean; + /** + * Current disabled state of menuitem as a boolean. + * @defaultValue false + */ + disabled: boolean; /** * Current level of the menuitem. */ diff --git a/components/lib/menubar/MenubarSub.vue b/components/lib/menubar/MenubarSub.vue index 692d8850c..a3c095176 100755 --- a/components/lib/menubar/MenubarSub.vue +++ b/components/lib/menubar/MenubarSub.vue @@ -146,6 +146,7 @@ export default { index, active: this.isItemActive(processedItem), focused: this.isItemFocused(processedItem), + disabled: this.isItemDisabled(processedItem), level: this.level } }); diff --git a/components/lib/panelmenu/PanelMenu.d.ts b/components/lib/panelmenu/PanelMenu.d.ts index ccd3967f5..bd00f2851 100755 --- a/components/lib/panelmenu/PanelMenu.d.ts +++ b/components/lib/panelmenu/PanelMenu.d.ts @@ -175,6 +175,11 @@ export interface PanelMenuContext { * @defaultValue false */ focused: boolean; + /** + * Current disabled state of menuitem as a boolean. + * @defaultValue false + */ + disabled: boolean; } /** diff --git a/components/lib/panelmenu/PanelMenu.vue b/components/lib/panelmenu/PanelMenu.vue index 4ab53e720..342aa19a1 100644 --- a/components/lib/panelmenu/PanelMenu.vue +++ b/components/lib/panelmenu/PanelMenu.vue @@ -103,7 +103,8 @@ export default { context: { index, active: this.isItemActive(item), - focused: this.isItemFocused(item) + focused: this.isItemFocused(item), + disabled: this.isItemDisabled(processedItem) } }); }, diff --git a/components/lib/panelmenu/PanelMenuSub.vue b/components/lib/panelmenu/PanelMenuSub.vue index 7c389f532..dc79215cd 100755 --- a/components/lib/panelmenu/PanelMenuSub.vue +++ b/components/lib/panelmenu/PanelMenuSub.vue @@ -135,7 +135,8 @@ export default { item: processedItem, index, active: this.isItemActive(processedItem), - focused: this.isItemFocused(processedItem) + focused: this.isItemFocused(processedItem), + disabled: this.isItemDisabled(processedItem) } }); }, diff --git a/components/lib/tieredmenu/TieredMenu.d.ts b/components/lib/tieredmenu/TieredMenu.d.ts index 2243432b8..413b28c3d 100755 --- a/components/lib/tieredmenu/TieredMenu.d.ts +++ b/components/lib/tieredmenu/TieredMenu.d.ts @@ -176,6 +176,11 @@ export interface TieredMenuContext { * @defaultValue false */ focused: boolean; + /** + * Current disabled state of menuitem as a boolean. + * @defaultValue false + */ + disabled: boolean; } /** diff --git a/components/lib/tieredmenu/TieredMenuSub.vue b/components/lib/tieredmenu/TieredMenuSub.vue index 106d08d1b..69a7c87e5 100755 --- a/components/lib/tieredmenu/TieredMenuSub.vue +++ b/components/lib/tieredmenu/TieredMenuSub.vue @@ -135,7 +135,8 @@ export default { item: processedItem, index, active: this.isItemActive(processedItem), - focused: this.isItemFocused(processedItem) + focused: this.isItemFocused(processedItem), + disabled: this.isItemDisabled(processedItem) } }); },