/*-------------------------------------------------------------------------------------------------------------- * Copyright (c) insite-gmbh. All rights reserved. * Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------------------------*/ import { IMenuProvider } from './menuProvider'; import { Router } from '@angular/router'; /** * The structure for the Items of a menu * @class MenuItem * @classdesc The structure for the Items of a menu * @author insite-gmbh */ export interface IMenuItem{ /** * Id = buttonnumber in the line */ id:number; /** * Used Menu Provider */ provider:IMenuProvider; /** * Action to apply e.g. url */ action:string; /** * prent menu of the current one */ parent:IMenuItem; /*** * this menu item is currently disabled */ isDisabled:boolean; /*** * this menu item is currently selected */ isSelected:boolean; /** * call this action on select */ selectAction():Promise; /** * text to disply */ text:string; }