Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit, Input, EventEmitter } from '@angular/core';
- @Component({
- selector: 'app-confirmation-modal-component',
- templateUrl: './comfirmation-modal-component.html',
- styleUrls: ['./confirmation-modal-component.scss']
- })
- export class ConfirmationModalComponent implements OnInit {
- @Input() private buttonLabelCancel: string = 'Cancelar';
- @Input() private buttonLabelDelete: string = 'Eliminar';
- @Input() private modalBody: string = 'Una vez eliminado, los datos no podrán ser recuperados.';
- @Input() private pClass: string = 'modal-body-p-class';
- @Input() private modalTitle: string = '¿Estás seguro de querer eliminar este platillo?';
- @Input() private btnCancel: string = 'btn-cancel';
- @Input() private btnDelete: string = 'btn-delete';
- @Input() private title: string = 'Platillo agregado correctamente!';
- @Input() private btnAcept: string = 'Aceptar';
- @Input() private btnSuccess: string= 'btn-success';
- @Input() private clickCancel: EventEmitter<string> = new EventEmitter<string>();
- @Input() private clickDelete: EventEmitter<string> = new EventEmitter<string>();
- constructor() { }
- public onClick (){
- this.clickCancel.emit();
- this.clickDelete.emit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement