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


TypeScript ng-bootstrap.NgbModal类代码示例

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


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

示例1: open

 public static open(modalService: NgbModal) {
     return modalService.open(UploadCsvDialog, {backdrop: "static"});
 }
开发者ID:endeavourhealth,项目名称:DataChecker,代码行数:3,代码来源:uploadCsv.dialog.ts

示例2: editItem

 public editItem(item: NameListItem): NgbModalRef {
     const modalRef = this.modalService.open(NameListItemModalContentComponent);
     modalRef.componentInstance.item = item;
     return modalRef;
 }
开发者ID:taylorjg,项目名称:Angular2Dialog,代码行数:5,代码来源:nameListItemModal.service.ts

示例3: confirm

 confirm(template: string | TemplateRef<any>, options ?: NgbModalOptions): Promise<any> {
     return this.modalService.open(template, options).result;
 }
开发者ID:Schlogen,项目名称:angular-confirm,代码行数:3,代码来源:confirm.service.ts

示例4: openEdit

 openEdit(id: any) {
   this.itemService.getById(id);
   this.activeModal.close();
   this.modalService.open(ModalFormEditComponent);
 }
开发者ID:charlesLoder,项目名称:My_Library,代码行数:5,代码来源:modal.component.ts

示例5:

        this.dttpService.filter( this.model ).subscribe( resp => {
            this.tpelList = resp.tpelList;
            this.tphtList = resp.tphtList;

            this.modalService.open( filter, { size: "lg" } );
        } );
开发者ID:xeredi,项目名称:portico,代码行数:6,代码来源:data-type-grid.component.ts

示例6: open

 open(content) {
   this.modalService.open(content, { size: 'lg' }).result
 }
开发者ID:marianojabdala,项目名称:skf-flask,代码行数:3,代码来源:project-list.component.ts

示例7: openWindowCustomClass

 openWindowCustomClass(content) {
   this.modalService.open(content, { windowClass: 'dark-modal' });
 }
开发者ID:daonhan,项目名称:ng-bootstrap,代码行数:3,代码来源:modal-options.ts

示例8: openLg

 openLg(content) {
   this.modalService.open(content, { size: 'lg' });
 }
开发者ID:daonhan,项目名称:ng-bootstrap,代码行数:3,代码来源:modal-options.ts

示例9: openbrowse

 openbrowse(val:any)
 {
   this.modal.open(val,{backdrop:true});
   this.getfolders(this.btntype);
   $('#tree').fancytree();
 }
开发者ID:imravi,项目名称:WatchRec,代码行数:6,代码来源:browse.component.ts

示例10: createModal

 createModal(fields: {title: string, msg: string, component: any}) {
   const modalRef = this.ngbModalService.open(fields.component);
   modalRef.componentInstance.title = fields.title;
   modalRef.componentInstance.msg = fields.msg;
   return modalRef.result;
 }
开发者ID:ChristopheGueroult,项目名称:crm-init-bordeaux,代码行数:6,代码来源:modal.service.ts

示例11: about

 about() {
     this.modal.open(AboutComponent);
 }
开发者ID:andrask,项目名称:CloudFlow,代码行数:3,代码来源:app.component.ts

示例12: showConfirm

 showConfirm(document) {
     const ngbModalRef = this.modalService.open(ElasticsearchReindexModalComponent);
     ngbModalRef.componentInstance.document = document
 }
开发者ID:alv-ch,项目名称:job-room,代码行数:4,代码来源:elasticsearch-reindex.component.ts

示例13: editEvent

 editEvent(event){
   let modal = this.modalService.open(EventFormComponent)
   modal.componentInstance.modal = modal;
   modal.componentInstance.event = event;
 }
开发者ID:tstapler,项目名称:DJ-Alfred,代码行数:5,代码来源:event-list.component.ts

示例14: createOptionValue

 createOptionValue(content) {
     this.modalRef = this.modalService.open(content);
     this.modalRef.result.then((result) => {
       }, (reason) => {
       });
   }
开发者ID:chenshao0594,项目名称:eshop,代码行数:6,代码来源:product-option-detail.component.ts

示例15: open

 open(content, level: number) {
   this.checklistService
     .getChecklist(level)
     .subscribe(checklistItems => { this.checklistItems = checklistItems });
     this.modalService.open(content, { size: 'lg' })
 }
开发者ID:marianojabdala,项目名称:skf-flask,代码行数:6,代码来源:checklist.component.ts


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