本文整理匯總了TypeScript中ngx-bootstrap/modal/bs-modal-ref.service.BsModalRef類的典型用法代碼示例。如果您正苦於以下問題:TypeScript service.BsModalRef類的具體用法?TypeScript service.BsModalRef怎麽用?TypeScript service.BsModalRef使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了service.BsModalRef類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: approve
approve(appointmentRequest2: AppointmentRequest){
this.appointmentRequest = appointmentRequest2;
this.appointmentRequest.status ="Aprovado";
this.appointmentrequestService.update(this.appointmentRequest, appointmentRequest2._id).subscribe();
this.refresh();
this.modalRef.hide();
}
示例2: closeFirstModal
closeFirstModal() {
this.modalRef.hide();
this.modalRef = null;
}
示例3:
this.bsModalRef.content.onClose = (myData) => {
this.updateList();
this.bsModalRef.hide();
this.myData = myData;
};
示例4: cancel
cancel(): void {
this.onClose.next(null);
this.bsModalRef.hide();
}
示例5: confirm
confirm(): void {
const processedInputs = new Object();
this.componentRequests.forEach(cr => { processedInputs[cr.name] = cr.getProcessedValue(); });
this.onClose.next(processedInputs);
this.bsModalRef.hide();
}
示例6: closeAbout
public closeAbout( $event: AboutEvent ): void {
this.aboutRef.hide();
}
示例7: decline
decline(): void {
this.message = 'Declined!';
this.modalRef.hide();
}
示例8: confirm
confirm(): void {
this.message = 'Confirmed!';
this.modalRef.hide();
}