當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript modal.BsModalRef類代碼示例

本文整理匯總了TypeScript中ngx-bootstrap/modal.BsModalRef的典型用法代碼示例。如果您正苦於以下問題:TypeScript BsModalRef類的具體用法?TypeScript BsModalRef怎麽用?TypeScript BsModalRef使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了BsModalRef類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: save

  save() {
    const settings = {};
    _.forIn(this.settingsForm.controls, (control, key) => {
      if (!(control.value === '' || control.value === null)) {
        settings[key] = control.value;
      }
    });

    this.target_controls.setValue(settings);
    this.modalRef.hide();
  }
開發者ID:IlsooByun,項目名稱:ceph,代碼行數:11,代碼來源:iscsi-target-iqn-settings-modal.component.ts

示例2: save

  save() {
    const settings = {};
    _.forIn(this.settingsForm.value, (value, key) => {
      if (!(value === '' || value === null)) {
        settings[key] = value;
      }
    });

    this.imagesSettings[this.image] = settings;
    this.imagesSettings = { ...this.imagesSettings };
    this.modalRef.hide();
  }
開發者ID:IlsooByun,項目名稱:ceph,代碼行數:12,代碼來源:iscsi-target-image-settings-modal.component.ts

示例3: save

 save() {
   const backstore = this.model.backstore;
   const settings = {};
   _.forIn(this.model[backstore], (value, key) => {
     if (!(value === '' || value === null)) {
       settings[key] = value;
     }
   });
   this.imagesSettings[this.image]['backstore'] = backstore;
   this.imagesSettings[this.image][backstore] = settings;
   this.imagesSettings = { ...this.imagesSettings };
   this.modalRef.hide();
 }
開發者ID:LenzGr,項目名稱:ceph,代碼行數:13,代碼來源:iscsi-target-image-settings-modal.component.ts

示例4: cancel

 cancel() {
   this.modalRef.hide();
   if (this.onCancel) {
     this.onCancel();
   }
 }
開發者ID:C2python,項目名稱:ceph,代碼行數:6,代碼來源:confirmation-modal.component.ts

示例5: save

 save(appointment:Appointment){
   this.appointmentService.save(appointment, appointment._id).subscribe();
   this.refresh();
   this.modalRef.hide();
 }
開發者ID:CompCult,項目名稱:mv-front,代碼行數:5,代碼來源:appointments.component.ts

示例6:

 this.bsModalRef.content.onClose = (myData) => {
   this.refresh();
   this.bsModalRef.hide();
   this.myData = myData;
 };
開發者ID:CompCult,項目名稱:mv-front,代碼行數:5,代碼來源:appointments.component.ts

示例7:

 () => {
   this.modalRef.hide();
 }
開發者ID:C2python,項目名稱:ceph,代碼行數:3,代碼來源:rbd-trash-purge-modal.component.ts


注:本文中的ngx-bootstrap/modal.BsModalRef類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。