/**
  * Opens modal window.
  */
 openModal(modal: any): void {
   this.modalService.open(modal);
 }
Ejemplo n.º 2
0
 confirm(template: string | TemplateRef<any>, options ?: NgbModalOptions): Promise<any> {
     return this.modalService.open(template, options).result;
 }
Ejemplo n.º 3
0
        this.ssrvService.filter( this.model ).subscribe( resp => {
            this.portList = resp.prtoList;
            this.labelValuesMap = resp.labelValuesMap;

            this.modalService.open( filter, { size: "lg" } );
        } );
Ejemplo n.º 4
0
  showSmallModal() {
    const activeModal = this.modalService.open(ModalComponent, { size: 'sm', container: 'nb-layout' });

    activeModal.componentInstance.modalHeader = 'Small Modal';
  }
 ajout() {
   const modalRef = this.modalService.open(CreerChauffeurComponent);
 }
Ejemplo n.º 6
0
 about() {
     this.modal.open(AboutComponent);
 }
 showConfirm(document) {
     const ngbModalRef = this.modalService.open(ElasticsearchReindexModalComponent);
     ngbModalRef.componentInstance.document = document
 }
Ejemplo n.º 8
0
 editEvent(event){
   let modal = this.modalService.open(EventFormComponent)
   modal.componentInstance.modal = modal;
   modal.componentInstance.event = event;
 }
 createOptionValue(content) {
     this.modalRef = this.modalService.open(content);
     this.modalRef.result.then((result) => {
       }, (reason) => {
       });
   }
Ejemplo n.º 10
0
 open(content, level: number) {
   this.checklistService
     .getChecklist(level)
     .subscribe(checklistItems => { this.checklistItems = checklistItems });
     this.modalService.open(content, { size: 'lg' })
 }