mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Refactor #4190 - For PanelMenu
This commit is contained in:
parent
06acfdf264
commit
a7f0366b6a
2 changed files with 5 additions and 0 deletions
4
components/lib/panelmenu/PanelMenu.d.ts
vendored
4
components/lib/panelmenu/PanelMenu.d.ts
vendored
|
@ -134,6 +134,10 @@ export interface PanelMenuState {
|
||||||
* Defines current options in PanelMenu component.
|
* Defines current options in PanelMenu component.
|
||||||
*/
|
*/
|
||||||
export interface PanelMenuContext {
|
export interface PanelMenuContext {
|
||||||
|
/**
|
||||||
|
* Current menuitem
|
||||||
|
*/
|
||||||
|
item: any;
|
||||||
/**
|
/**
|
||||||
* Index of the menuitem.
|
* Index of the menuitem.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -130,6 +130,7 @@ export default {
|
||||||
getPTOptions(key, processedItem, index) {
|
getPTOptions(key, processedItem, index) {
|
||||||
return this.ptm(key, {
|
return this.ptm(key, {
|
||||||
context: {
|
context: {
|
||||||
|
item: processedItem,
|
||||||
index,
|
index,
|
||||||
active: this.isItemActive(processedItem),
|
active: this.isItemActive(processedItem),
|
||||||
focused: this.isItemFocused(processedItem)
|
focused: this.isItemFocused(processedItem)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue