Fixed #4632 - Menu components pt context disabled updates
parent
e8acbefd2a
commit
1953c34171
|
@ -182,6 +182,11 @@ export interface ContextMenuContext {
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
focused: boolean;
|
focused: boolean;
|
||||||
|
/**
|
||||||
|
* Current disabled state of menuitem as a boolean.
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
disabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -147,6 +147,7 @@ export default {
|
||||||
item: processedItem,
|
item: processedItem,
|
||||||
active: this.isItemActive(processedItem),
|
active: this.isItemActive(processedItem),
|
||||||
focused: this.isItemFocused(processedItem),
|
focused: this.isItemFocused(processedItem),
|
||||||
|
disabled: this.isItemDisabled(processedItem),
|
||||||
index
|
index
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -189,6 +189,11 @@ export interface MegaMenuContext {
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
focused: boolean;
|
focused: boolean;
|
||||||
|
/**
|
||||||
|
* Current disabled state of menuitem as a boolean.
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
disabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -158,7 +158,8 @@ export default {
|
||||||
item: processedItem,
|
item: processedItem,
|
||||||
index,
|
index,
|
||||||
active: this.isItemActive(processedItem),
|
active: this.isItemActive(processedItem),
|
||||||
focused: this.isItemFocused(processedItem)
|
focused: this.isItemFocused(processedItem),
|
||||||
|
disabled: this.isItemDisabled(processedItem)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -155,6 +155,11 @@ export interface MenuContext {
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
focused: boolean;
|
focused: boolean;
|
||||||
|
/**
|
||||||
|
* Current disabled state of menuitem as a boolean.
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
disabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -60,7 +60,8 @@ export default {
|
||||||
context: {
|
context: {
|
||||||
item: this.item,
|
item: this.item,
|
||||||
index: this.index,
|
index: this.index,
|
||||||
focused: this.isItemFocused()
|
focused: this.isItemFocused(),
|
||||||
|
disabled: this.isItemDisabled(processedItem)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -186,6 +186,11 @@ export interface MenubarContext {
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
focused: boolean;
|
focused: boolean;
|
||||||
|
/**
|
||||||
|
* Current disabled state of menuitem as a boolean.
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
disabled: boolean;
|
||||||
/**
|
/**
|
||||||
* Current level of the menuitem.
|
* Current level of the menuitem.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -146,6 +146,7 @@ export default {
|
||||||
index,
|
index,
|
||||||
active: this.isItemActive(processedItem),
|
active: this.isItemActive(processedItem),
|
||||||
focused: this.isItemFocused(processedItem),
|
focused: this.isItemFocused(processedItem),
|
||||||
|
disabled: this.isItemDisabled(processedItem),
|
||||||
level: this.level
|
level: this.level
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -175,6 +175,11 @@ export interface PanelMenuContext {
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
focused: boolean;
|
focused: boolean;
|
||||||
|
/**
|
||||||
|
* Current disabled state of menuitem as a boolean.
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
disabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -103,7 +103,8 @@ export default {
|
||||||
context: {
|
context: {
|
||||||
index,
|
index,
|
||||||
active: this.isItemActive(item),
|
active: this.isItemActive(item),
|
||||||
focused: this.isItemFocused(item)
|
focused: this.isItemFocused(item),
|
||||||
|
disabled: this.isItemDisabled(processedItem)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -135,7 +135,8 @@ export default {
|
||||||
item: processedItem,
|
item: processedItem,
|
||||||
index,
|
index,
|
||||||
active: this.isItemActive(processedItem),
|
active: this.isItemActive(processedItem),
|
||||||
focused: this.isItemFocused(processedItem)
|
focused: this.isItemFocused(processedItem),
|
||||||
|
disabled: this.isItemDisabled(processedItem)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -176,6 +176,11 @@ export interface TieredMenuContext {
|
||||||
* @defaultValue false
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
focused: boolean;
|
focused: boolean;
|
||||||
|
/**
|
||||||
|
* Current disabled state of menuitem as a boolean.
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
disabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -135,7 +135,8 @@ export default {
|
||||||
item: processedItem,
|
item: processedItem,
|
||||||
index,
|
index,
|
||||||
active: this.isItemActive(processedItem),
|
active: this.isItemActive(processedItem),
|
||||||
focused: this.isItemFocused(processedItem)
|
focused: this.isItemFocused(processedItem),
|
||||||
|
disabled: this.isItemDisabled(processedItem)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue