app/@overflow/commons/ui/component/menu/menu-bar.component.ts

65 lines
1.1 KiB
TypeScript
Raw Normal View History

2018-08-15 00:36:18 +00:00
import { Component, OnInit } from '@angular/core';
2018-08-17 06:27:22 +00:00
import { MenuItem } from 'primeng/primeng';
2018-08-15 00:36:18 +00:00
@Component({
2018-08-15 14:54:10 +00:00
selector: 'app-menu-bar',
2018-08-15 15:16:28 +00:00
templateUrl: './menu-bar.component.html',
2018-09-18 13:11:01 +00:00
styleUrls: ['./menu-bar.component.scss'],
2018-08-15 00:36:18 +00:00
})
2018-08-15 15:16:28 +00:00
export class MenuBarComponent implements OnInit {
2018-08-15 00:36:18 +00:00
2018-09-26 14:20:09 +00:00
items: MenuItem[];
2018-08-15 00:36:18 +00:00
constructor(
) { }
ngOnInit() {
2018-09-18 13:11:01 +00:00
this.items = [
{
label: 'File',
items: [
{ label: 'New' },
{ label: 'Open' },
{ separator: true },
{ label: 'Quit' }
]
},
{
label: 'Edit',
items: [
{ label: 'Delete' },
{ label: 'Refresh' }
]
},
{
label: 'Help',
items: [
{
label: 'Contents'
},
{
label: 'Search',
}
]
},
{
label: 'Actions',
items: [
{
label: 'Edit',
},
{
label: 'Other',
}
]
},
{
label: 'Quit',
}
];
2018-08-15 00:36:18 +00:00
}
onTitlebarDoubleClick() {
}
}