21 lines
642 B
TypeScript
21 lines
642 B
TypeScript
import { EntityDict } from '../oak-app-domain';
|
|
import { Feature } from 'oak-frontend-base';
|
|
import { ContextMenuFactory } from 'oak-frontend-base/es/features/contextMenuFactory';
|
|
import Console from './Console';
|
|
type GroupName = 'System';
|
|
export interface OMenu {
|
|
name: GroupName | string;
|
|
icon: string;
|
|
url?: string;
|
|
children?: Array<OMenu>;
|
|
}
|
|
export default class Menu extends Feature {
|
|
private contextMenuFactory;
|
|
private console;
|
|
private menus?;
|
|
constructor(contextMenuFactory: ContextMenuFactory<EntityDict>, console: Console);
|
|
refreshMenus(): void;
|
|
getMenus(): OMenu[] | undefined;
|
|
}
|
|
export {};
|