Advertisement
xxxxbe

Untitled

Jun 25th, 2020
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Component, OnInit, Input, EventEmitter } from '@angular/core';
  2.  
  3. @Component({
  4.   selector: 'app-confirmation-modal-component',
  5.   templateUrl: './comfirmation-modal-component.html',
  6.   styleUrls: ['./confirmation-modal-component.scss']
  7. })
  8. export class ConfirmationModalComponent implements OnInit {
  9.   @Input() private buttonLabelCancel: string = 'Cancelar';
  10.   @Input() private buttonLabelDelete: string = 'Eliminar';
  11.   @Input() private modalBody: string = 'Una vez eliminado, los datos no podrán ser recuperados.';
  12.   @Input() private pClass: string = 'modal-body-p-class';
  13.   @Input() private modalTitle: string = '¿Estás seguro de querer eliminar este platillo?';
  14.   @Input() private btnCancel: string = 'btn-cancel';
  15.   @Input() private btnDelete: string = 'btn-delete';
  16.   @Input() private title: string = 'Platillo agregado correctamente!';
  17.   @Input() private btnAcept: string = 'Aceptar';
  18.   @Input() private btnSuccess: string= 'btn-success';
  19.   @Input() private clickCancel: EventEmitter<string> = new EventEmitter<string>();
  20.   @Input() private clickDelete: EventEmitter<string> = new EventEmitter<string>();
  21.  
  22.   constructor() { }
  23.  
  24.   public onClick (){
  25.     this.clickCancel.emit();
  26.     this.clickDelete.emit();
  27. }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement