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


TypeScript ModalComponent.open方法代碼示例

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


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

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

示例2: updateNoteDisplay

	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

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

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

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

示例6: open

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

示例7: ngAfterViewInit

	ngAfterViewInit()
	{
		this.modal.open();
	}
開發者ID:benny568,項目名稱:clubWebsite,代碼行數:4,代碼來源:editMember.component.ts

示例8: onClickFeedback

 private onClickFeedback(){
     this.feedbackModal.open();
 }
開發者ID:skoocda,項目名稱:spreza,代碼行數:3,代碼來源:navbar.ts

示例9: onSelect

 onSelect(valuePolicy:any, valueName:any) {        
     this.valuePolicySelect = valuePolicy
     this.namePolicy = valueName;
     this.modal.open(valueName);
 }
開發者ID:melamudv,項目名稱:dashboard-VM,代碼行數:5,代碼來源:backup.component.ts

示例10: openModal

 openModal(character: ICharacter){
     this.selectedCharacter = character;
     this.modal.open();
 }
開發者ID:EmcaBorg,項目名稱:got,代碼行數:4,代碼來源:characters_search_data.component.ts


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