當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。