monitor-dashboard/src/app/utils/entities/sidebar.ts

24 lines
408 B
TypeScript
Raw Normal View History

export class Item {
name: string;
route: string;
items: Item[];
icon: string;
open: boolean;
constructor(name: string, route: string, items: Item[], icon, open: boolean) {
this.name = name;
this.route = route;
this.items = items;
this.icon = icon;
this.open = open;
}
}
export class Sidebar {
items: Item[];
constructor(items: Item[]) {
this.items = items;
}
}