UNPKG

armisa-models

Version:
23 lines (21 loc) 834 B
import { IParentFormManager } from "../../Page/ElementsOfFormFactory"; import { ISystems } from "./1-MenuFactory"; import { MenuSubItemFactory } from "./3-MenuSubItemFactory"; export class ChildOfSubMenuItemFactory { public visible: boolean = true; public systems: ISystems[] = []; public keyOfChildSubItem: string; constructor( public subMenuItemFactory: MenuSubItemFactory, public caption: string, public path?: string, public Page?: React.ComponentType<{ parentFormManager: IParentFormManager }>, public exact?: boolean, public onClick?: () => void, ) { this.keyOfChildSubItem = this.subMenuItemFactory.childOfSubMenuItems.length + 'childOfSubMenuItems'; } isSystemSelected(): boolean { return this.visible; } }