本文整理匯總了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' })
}