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


TypeScript ngx-bootstrap.ModalDirective类代码示例

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


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

示例1: onSaveSuccess

 private onSaveSuccess() {
   this.domUtilsService.unregisterBeforeUnloadPrompt();
   this.modal.hide();
   if (this.options.onConfirm) {
     this.options.onConfirm();
   }
 }
开发者ID:inspirehep,项目名称:record-editor,代码行数:7,代码来源:save-preview-modal.component.ts

示例2:

 .then(() => {
   this.domUtilsService.unregisterBeforeUnloadPrompt();
   this.modal.hide();
   if (this.options.onConfirm) {
     this.options.onConfirm();
   }
 })
开发者ID:harunurhan,项目名称:record-editor,代码行数:7,代码来源:save-preview-modal.component.ts

示例3: onSaveError

  private onSaveError(error: ApiError) {
    if (error.message) {
      this.toastrService.error(error.message, 'Error', HOVER_TO_DISMISS_INDEFINITE_TOAST);
    } else {
      this.toastrService.error('Could not save the record', 'Error');
    }

    this.modal.hide();
  }
开发者ID:inspirehep,项目名称:record-editor,代码行数:9,代码来源:save-preview-modal.component.ts

示例4: onCancel

 onCancel() {
   this.modal.hide();
   if (this.options.onCancel) {
     this.options.onCancel();
   }
 }
开发者ID:harunurhan,项目名称:record-editor,代码行数:6,代码来源:save-preview-modal.component.ts

示例5: hideChildModal

 hideChildModal(): void {
   this.childModal.hide();
 }
开发者ID:xiongdg,项目名称:angular-admin,代码行数:3,代码来源:modals.component.ts

示例6: showChildModal

 showChildModal(): void {
   this.childModal.show();
 }
开发者ID:xiongdg,项目名称:angular-admin,代码行数:3,代码来源:modals.component.ts

示例7: ngAfterViewInit

 ngAfterViewInit() {
   this.aboutModal.show();
 }
开发者ID:openfact,项目名称:openfact-web-console,代码行数:3,代码来源:about.component.ts


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