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