本文整理匯總了TypeScript中angular-ui-bootstrap.IModalInstanceService.close方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript IModalInstanceService.close方法的具體用法?TypeScript IModalInstanceService.close怎麽用?TypeScript IModalInstanceService.close使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類angular-ui-bootstrap.IModalInstanceService
的用法示例。
在下文中一共展示了IModalInstanceService.close方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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);
}
示例2: 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);
}
}
示例3: submit
public submit(): void {
this.$uibModalInstance.close(this.$scope.parameter);
}
示例4: submit
public submit(): void {
this.$uibModalInstance.close(this.$scope.customHeader);
}
示例5: yes
// Yes response
public yes(): void {
// Close the modal and return true
this.$uibModalInstance.close(true);
}