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;
|
2026-04-30 16:27:42 +03:30
|
|
|
@Input() disabled = false;
|
2025-12-04 21:07:18 +03:30
|
|
|
@Output() onSubmit = new EventEmitter<void>();
|
|
|
|
|
@Output() onCancel = new EventEmitter<void>();
|
|
|
|
|
|
|
|
|
|
constructor() {}
|
|
|
|
|
|
|
|
|
|
submit() {
|
|
|
|
|
this.onSubmit.emit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cancel() {
|
|
|
|
|
this.onCancel.emit();
|
|
|
|
|
}
|
|
|
|
|
}
|