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


TypeScript angular-ui-bootstrap.IModalInstanceService類代碼示例

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


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

示例1: start

	// Save and close the modal
	public start(): void {
		// Store the closing balance in local storage
		this.$window.localStorage.setItem(this.LOCAL_STORAGE_KEY, String(this.closingBalance));

		// Close the modal and return the balance
		this.$uibModalInstance.close(this.closingBalance);
	}
開發者ID:scottohara,項目名稱:loot,代碼行數:8,代碼來源:reconcile.ts

示例2: choose

 public choose(): void {
   this.$uibModalInstance.dismiss();
   this.$uibModal.open({
     templateUrl: this.choice.createTemplateUrl,
     controller: `${this.choice.controller} as ctrl`,
     size: 'lg',
     resolve: {
       application: () => this.application,
       loadBalancer: (): null => null,
       isNew: () => true,
       forPipelineConfig: () => false,
     }
   });
 }
開發者ID:jcwest,項目名稱:deck,代碼行數:14,代碼來源:awsLoadBalancerChoice.modal.ts

示例3: onApplicationRefresh

  private onApplicationRefresh (loadBalancer: IGceLoadBalancer): void {
    // If the user has already closed the modal, do not navigate to the new details view
    if (this.$scope.$$destroyed) {
      return;
    }
    this.$uibModalInstance.close();

    const newStateParams = {
      name: loadBalancer.loadBalancerName,
      accountId: loadBalancer.credentials,
      region: loadBalancer.region,
      provider: 'gce',
    };

    if (!this.$state.includes('**.loadBalancerDetails')) {
      this.$state.go('.loadBalancerDetails', newStateParams);
    } else {
      this.$state.go('^.loadBalancerDetails', newStateParams);
    }
  }
開發者ID:jcwest,項目名稱:deck,代碼行數:20,代碼來源:commonLoadBalancer.controller.ts

示例4: closeModal

	// Close the modal
	public closeModal(): void {
		this.$uibModalInstance.dismiss();
	}
開發者ID:scottohara,項目名稱:loot,代碼行數:4,代碼來源:alert.ts

示例5: submit

 public submit(): void {
   this.$uibModalInstance.close(this.$scope.parameter);
 }
開發者ID:mizzy,項目名稱:deck,代碼行數:3,代碼來源:addParameter.controller.modal.ts

示例6: submit

 public submit(): void {
   this.$uibModalInstance.close(this.$scope.customHeader);
 }
開發者ID:jcwest,項目名稱:deck,代碼行數:3,代碼來源:addCustomHeader.controller.modal.ts

示例7: no

	// No response
	public no(): void {
		this.$uibModalInstance.dismiss();
	}
開發者ID:scottohara,項目名稱:loot,代碼行數:4,代碼來源:confirm.ts

示例8: yes

	// Yes response
	public yes(): void {
		// Close the modal and return true
		this.$uibModalInstance.close(true);
	}
開發者ID:scottohara,項目名稱:loot,代碼行數:5,代碼來源:confirm.ts


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