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

            this.modalService.open( filter, { size: "lg" } );
        } );
Example #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);
 }
Example #6
0
 about() {
     this.modal.open(AboutComponent);
 }
 showConfirm(document) {
     const ngbModalRef = this.modalService.open(ElasticsearchReindexModalComponent);
     ngbModalRef.componentInstance.document = document
 }
 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) => {
       });
   }
 open(content, level: number) {
   this.checklistService
     .getChecklist(level)
     .subscribe(checklistItems => { this.checklistItems = checklistItems });
     this.modalService.open(content, { size: 'lg' })
 }