armisa-models
Version:
models of armisa!
21 lines (20 loc) • 744 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChildOfSubMenuItemFactory = void 0;
class ChildOfSubMenuItemFactory {
constructor(subMenuItemFactory, caption, path, Page, exact, onClick) {
this.subMenuItemFactory = subMenuItemFactory;
this.caption = caption;
this.path = path;
this.Page = Page;
this.exact = exact;
this.onClick = onClick;
this.visible = true;
this.systems = [];
this.keyOfChildSubItem = this.subMenuItemFactory.childOfSubMenuItems.length + 'childOfSubMenuItems';
}
isSystemSelected() {
return this.visible;
}
}
exports.ChildOfSubMenuItemFactory = ChildOfSubMenuItemFactory;