Refactor #4190 - For PanelMenu
parent
06acfdf264
commit
a7f0366b6a
|
@ -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…
Reference in New Issue