mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Refactor #4211 - For Menubar
This commit is contained in:
parent
2e42f65061
commit
445776316e
2 changed files with 6 additions and 1 deletions
4
components/lib/menubar/Menubar.d.ts
vendored
4
components/lib/menubar/Menubar.d.ts
vendored
|
@ -169,6 +169,10 @@ export interface MenubarContext {
|
|||
* @defaultValue false
|
||||
*/
|
||||
focused: boolean;
|
||||
/**
|
||||
* Current level of the menuitem.
|
||||
*/
|
||||
level: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -144,7 +144,8 @@ export default {
|
|||
item: processedItem,
|
||||
index,
|
||||
active: this.isItemActive(processedItem),
|
||||
focused: this.isItemFocused(processedItem)
|
||||
focused: this.isItemFocused(processedItem),
|
||||
level: this.level
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue