import { Component , ViewChild } from '@angular/core' ; import { EdaDialog , EdaDialogAbstract , EdaDialogCloseEvent } from '@eda/shared/components/shared-components.index' ; @ Component ( { selector : 'app-title-dialog' , templateUrl : './quill-editor.component.html' , } ) export class TitleDialogComponent extends EdaDialogAbstract { public dialog : EdaDialog ; public title : string ; constructor ( ) { super ( ) ; this . dialog = new EdaDialog ( { show : ( ) => this . onShow ( ) , hide : ( ) => this . onClose ( EdaDialogCloseEvent . NONE ) , title : $localize `:@@ChartProps:PROPIEDADES DEL GRAFICO` } ) ; this . dialog . style = { width : '80%' , height : '70%' , top : "-4em" , left : '1em' } ; } onShow ( ) { this . title = this . controller . params . title ; } onClose ( event , response ? ) { return this . controller . close ( event , response ) ; } saveChartConfig ( ) { this . onClose ( EdaDialogCloseEvent . UPDATE , { title : this . title } ) ; } closeChartConfig ( ) { this . onClose ( EdaDialogCloseEvent . NONE ) ; } }