本文整理匯總了TypeScript中angular-ui-bootstrap.IModalServiceInstance類的典型用法代碼示例。如果您正苦於以下問題:TypeScript IModalServiceInstance類的具體用法?TypeScript IModalServiceInstance怎麽用?TypeScript IModalServiceInstance使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了IModalServiceInstance類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: closeModal
public closeModal(): void {
try {
this.modalInstance.dismiss();
} catch (ignored) {
// modal was already closed
}
}
示例2: updatePipeline
public updatePipeline(): void {
try {
const parsed = JSON.parse(this.command.pipelineJSON);
parsed.appConfig = parsed.appConfig || {};
this.validatePipeline(parsed);
this.removeImmutableFields(parsed);
extend(this.pipeline, parsed);
this.$uibModalInstance.close();
} catch (e) {
this.command.invalid = true;
this.command.errorMessage = e.message;
}
}
示例3: cancel
public cancel(): void {
this.$uibModalInstance.dismiss();
}