EchoTex_Payroll/HRM.UI/ClientApp/src/app/demo/view/buttondemo.component.ts
2024-10-14 10:01:49 +06:00

28 lines
773 B
TypeScript

import {Component, OnInit} from '@angular/core';
import {MenuItem} from 'primeng/api';
import {BreadcrumbService} from '../../app.breadcrumb.service';
@Component({
templateUrl: './buttondemo.component.html'
})
export class ButtonDemoComponent implements OnInit {
items: MenuItem[];
constructor(private breadcrumbService: BreadcrumbService) {
this.breadcrumbService.setItems([
{label: 'Button'}
]);
}
ngOnInit() {
this.items = [
{label: 'Update', icon: 'pi pi-refresh'},
{label: 'Delete', icon: 'pi pi-times'},
{label: 'Angular.io', icon: 'pi pi-info', url: 'http://angular.io'},
{separator: true},
{label: 'Setup', icon: 'pi pi-cog'}
];
}
}