Files
psp_panel/src/app/shared/components/formFooterActions/form-footer-actions.component.ts
T

26 lines
597 B
TypeScript
Raw Normal View History

2025-12-04 21:07:18 +03:30
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { Button } from 'primeng/button';
@Component({
selector: 'app-form-footer-actions',
templateUrl: './form-footer-actions.component.html',
imports: [Button],
})
export class FormFooterActionsComponent {
@Input() submitLabel = 'تایید';
@Input() cancelLabel = 'لغو';
@Input() loading = false;
@Output() onSubmit = new EventEmitter<void>();
@Output() onCancel = new EventEmitter<void>();
constructor() {}
submit() {
this.onSubmit.emit();
}
cancel() {
this.onCancel.emit();
}
}