import type { IMenu } from '../IMenu' ; import type { IMenuSubMenuEvents , IMenuSubMenuItem } from './IMenuSubMenuItem' ; import { MenuItem } from './MenuItem' ; export class MenuSubMenuItem extends MenuItem implements IMenuSubMenuItem { readonly menu : IMenu ; readonly events ? : IMenuSubMenuEvents ; readonly hidden : boolean ; constructor ( menu , events ? ) { super ( menu . id ) ; this . menu = menu ; this . hidden = false ; this . events = events ; } }