本文整理汇总了TypeScript中@ng-bootstrap/ng-bootstrap.NgbModalRef类的典型用法代码示例。如果您正苦于以下问题:TypeScript NgbModalRef类的具体用法?TypeScript NgbModalRef怎么用?TypeScript NgbModalRef使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NgbModalRef类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: onNewItem
public onNewItem(event){
if(event.value){
this.collection._items.unshift(event.value);
for(let i in this.collection._items){
this.collection._items[i].position = parseInt(i);
}
this.collection.itemsCount++;
this.currentModal.close();
}
}
示例2: onCollectionUpdated
public onCollectionUpdated(event){
if(event.value){
this.collection.title = event.value.title;
this.collection.bio = event.value.bio;
this.collection.color = event.value.color;
this.collection.visibility = event.value.visibility;
this.collection._thumbnail = event.value._thumbnail;
this.emitUpdateHeaderEvent();
}
this.currentModal.close();
}
示例3:
() => { this.modalRef.close(); }
示例4: onSaveSuccess
private onSaveSuccess(result: ProductOption) {
this.modalRef.close();
this.eventManager.broadcast({ name: 'optionValueListModification', content: 'OK'});
}
示例5: closeModal
closeModal() {
this.modal.close();
}
示例6: onUpdateCollectionCanceled
public onUpdateCollectionCanceled(){
this.currentModal.close();
}