当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ng2-bs3-modal.ModalComponent类代码示例

本文整理汇总了TypeScript中ng2-bs3-modal/ng2-bs3-modal.ModalComponent的典型用法代码示例。如果您正苦于以下问题:TypeScript ModalComponent类的具体用法?TypeScript ModalComponent怎么用?TypeScript ModalComponent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ModalComponent类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: 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

示例2: mopen

 public mopen() {
     if (localStorage.getItem('refresh_key')) {
         this.refreshBool = true;
         this.loginBool = false;
         this.registerBool = false;
         this.modal.open();// check if refresh key is present 
         this.refreshLogin(); // renew auth key
     }
     else {
         this.refreshBool = false;
         this.loginBool = true;
         this.registerBool = false;
         this.modal.open();
     }
 }
开发者ID:devilsuraj,项目名称:openiddict-samples,代码行数:15,代码来源:authorize-component.ts

示例3: Note

	updateNoteDisplay(note: Note){
		this.editNoteModal.open();
		this.editNoteId = note._id;
		this.editNoteText = note.text;
		this.cachedUpdateNote = new Note(note._id, note.text, note.tags, note.updated);
		this.editNoteTags = note.tags.join(', ');
	}
开发者ID:AustinBratcher,项目名称:ngan.ninja,代码行数:7,代码来源:app-component.ts

示例4:

 .sendUserFeedback(this.feedbackForm.value).then(() => {
     this.feedbackModal.close();
     this.isButtonActive = false
     // Show notification on success
     toastr.success(
         this.commonService.getUXClientMessage('MSG_FEEDBACK'),
         'Notification'
     );
 }, (errorCode: string) => {
开发者ID:skoocda,项目名称:spreza,代码行数:9,代码来源:navbar.ts

示例5: open

  public open(): void {
    // Initialize form with clean values.
    this.begin.setValue(dateStr(this.ts.begin));
    this.end.setValue(dateStr(this.ts.end));
    this.duration.setValue(durationStr(this.ts.duration));
    this.stepsize.setValue(durationStr(this.ts.stepsize));

    // By this time, we don't need timespec to be updated via request parameters anymore.
    this._routeSubscription.unsubscribe();

    this.dialog.open();
  }
开发者ID:groupon,项目名称:monsoon,代码行数:12,代码来源:time-spec-modal.component.ts

示例6: 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

示例7: setDownloadType

  setDownloadType(type:string){
      
    console.log("fa fa");

    if(type === this._npnPortalService.downloadType)
        return;
    if(this._npnPortalService.filtersAreSet() && !this._npnPortalService.allowDownloadTypeChangeWithoutReset) {
      this.resetFiltersModal.open();
      this.newType = type;
    }
    else {
      this._npnPortalService.downloadType = type;
      this._npnPortalService.setObservationCount();
    }
  }
开发者ID:usa-npn,项目名称:phenology-observation-portal,代码行数:15,代码来源:get-started.component.ts

示例8: 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

示例9: open

 open() {
     this.modal.open();
 }
开发者ID:mpduffey,项目名称:desktop,代码行数:3,代码来源:desktop.ts


注:本文中的ng2-bs3-modal/ng2-bs3-modal.ModalComponent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。