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


TypeScript ModalComponent.close方法代碼示例

本文整理匯總了TypeScript中ng2-bs3-modal/ng2-bs3-modal.ModalComponent.close方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript ModalComponent.close方法的具體用法?TypeScript ModalComponent.close怎麽用?TypeScript ModalComponent.close使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ng2-bs3-modal/ng2-bs3-modal.ModalComponent的用法示例。


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

示例1:

 }, (errorCode: string) => {
     this.feedbackModal.close();
     this.isButtonActive = false;
     // Show error
     toastr.error(
         this.commonService.getUXServerError(errorCode),
         'Uh Oh...'
     );
 });
開發者ID:skoocda,項目名稱:spreza,代碼行數:9,代碼來源:navbar.ts

示例2: eventToggleHelp

 private eventToggleHelp(){
     // Toggle the help modal state
     this.isHelpModalOpen = !this.isHelpModalOpen;
     // Open or close the modal depending on help modal state variable
     if (this.isHelpModalOpen){
         this.helpModal.open();
     } else {
         this.helpModal.close();
     }
 }
開發者ID:skoocda,項目名稱:spreza,代碼行數:10,代碼來源:transcript.ts

示例3: addVm

    addVm(vmName:any, policyName:any){
        console.log("Policy Name",policyName);
        if(policyName === "Select Policy"){
            this.removeVm(vmName) ;
        }
        else{

        }
        this.vmAdd.push(vmName);
        console.log(this.vmAdd);       
        this.modal.close();
        this.checkRed(vmName);
    }
開發者ID:melamudv,項目名稱:dashboard-VM,代碼行數:13,代碼來源:backup.component.ts

示例4: onSubmit

  private onSubmit() {
    // Apply update to timespec service.
    this.ts.update(
        decodeDate(this.formModel.value.begin),
        decodeDate(this.formModel.value.end),
        decodeDuration(this.formModel.value.duration),
        decodeDuration(this.formModel.value.stepsize));

    // Apply update to URL query parameters.
    let params: Map<string, string> = new Map<string, string>();
    if (this.ts.begin != null)    params['tsb'] = this.ts.begin.getTime().toString();
    if (this.ts.end != null)      params['tse'] = this.ts.end.getTime().toString();
    if (this.ts.duration != null) params['tsd'] = durationToString(this.ts.duration);
    if (this.ts.stepsize != null) params['tss'] = durationToString(this.ts.stepsize);
    this._router.navigate([], { relativeTo: this._route, replaceUrl: true, queryParams: params });

    this.dialog.close();
  }
開發者ID:groupon,項目名稱:monsoon,代碼行數:18,代碼來源:time-spec-modal.component.ts

示例5: close

 close() {
     this.modal.close();
 }
開發者ID:mpduffey,項目名稱:desktop,代碼行數:3,代碼來源:desktop.ts

示例6:

 this.characterService.removeCharacterById(id, (err: boolean, response: any) => {
     if(!err){
         this.emitterService.emit({command: Commands.RELOAD_SEARCH});
         this.modal.close();
     }
 });
開發者ID:EmcaBorg,項目名稱:got,代碼行數:6,代碼來源:characters_search_data.component.ts

示例7: close

 close() {
     this.modal.close();
     this._router.navigate(['']);
 }
開發者ID:CodeMax,項目名稱:Scalable-Shopsystem,代碼行數:4,代碼來源:app.component.ts

示例8: closeUpdateModal

 closeUpdateModal() {
     this.updateModal.close();
 }
開發者ID:NazDov,項目名稱:myosbb,代碼行數:3,代碼來源:role-form.component.ts

示例9: mclose

 public mclose() {
     this.modal.close();
     $('body').removeClass('modal-open');
     $('.modal-backdrop').remove();
 }
開發者ID:devilsuraj,項目名稱:openiddict-samples,代碼行數:5,代碼來源:authorize-component.ts


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