本文整理汇总了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"});
}
示例2: editItem
public editItem(item: NameListItem): NgbModalRef {
const modalRef = this.modalService.open(NameListItemModalContentComponent);
modalRef.componentInstance.item = item;
return modalRef;
}
示例3: confirm
confirm(template: string | TemplateRef<any>, options ?: NgbModalOptions): Promise<any> {
return this.modalService.open(template, options).result;
}
示例4: openEdit
openEdit(id: any) {
this.itemService.getById(id);
this.activeModal.close();
this.modalService.open(ModalFormEditComponent);
}
示例5:
this.dttpService.filter( this.model ).subscribe( resp => {
this.tpelList = resp.tpelList;
this.tphtList = resp.tphtList;
this.modalService.open( filter, { size: "lg" } );
} );
示例6: open
open(content) {
this.modalService.open(content, { size: 'lg' }).result
}
示例7: openWindowCustomClass
openWindowCustomClass(content) {
this.modalService.open(content, { windowClass: 'dark-modal' });
}
示例8: openLg
openLg(content) {
this.modalService.open(content, { size: 'lg' });
}
示例9: openbrowse
openbrowse(val:any)
{
this.modal.open(val,{backdrop:true});
this.getfolders(this.btntype);
$('#tree').fancytree();
}
示例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;
}
示例11: about
about() {
this.modal.open(AboutComponent);
}
示例12: showConfirm
showConfirm(document) {
const ngbModalRef = this.modalService.open(ElasticsearchReindexModalComponent);
ngbModalRef.componentInstance.document = document
}
示例13: editEvent
editEvent(event){
let modal = this.modalService.open(EventFormComponent)
modal.componentInstance.modal = modal;
modal.componentInstance.event = event;
}
示例14: createOptionValue
createOptionValue(content) {
this.modalRef = this.modalService.open(content);
this.modalRef.result.then((result) => {
}, (reason) => {
});
}
示例15: open
open(content, level: number) {
this.checklistService
.getChecklist(level)
.subscribe(checklistItems => { this.checklistItems = checklistItems });
this.modalService.open(content, { size: 'lg' })
}