本文整理匯總了TypeScript中ngx-bootstrap/modal.BsModalRef類的典型用法代碼示例。如果您正苦於以下問題:TypeScript BsModalRef類的具體用法?TypeScript BsModalRef怎麽用?TypeScript BsModalRef使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了BsModalRef類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: save
save() {
const settings = {};
_.forIn(this.settingsForm.controls, (control, key) => {
if (!(control.value === '' || control.value === null)) {
settings[key] = control.value;
}
});
this.target_controls.setValue(settings);
this.modalRef.hide();
}
示例2: save
save() {
const settings = {};
_.forIn(this.settingsForm.value, (value, key) => {
if (!(value === '' || value === null)) {
settings[key] = value;
}
});
this.imagesSettings[this.image] = settings;
this.imagesSettings = { ...this.imagesSettings };
this.modalRef.hide();
}
示例3: save
save() {
const backstore = this.model.backstore;
const settings = {};
_.forIn(this.model[backstore], (value, key) => {
if (!(value === '' || value === null)) {
settings[key] = value;
}
});
this.imagesSettings[this.image]['backstore'] = backstore;
this.imagesSettings[this.image][backstore] = settings;
this.imagesSettings = { ...this.imagesSettings };
this.modalRef.hide();
}
示例4: cancel
cancel() {
this.modalRef.hide();
if (this.onCancel) {
this.onCancel();
}
}
示例5: save
save(appointment:Appointment){
this.appointmentService.save(appointment, appointment._id).subscribe();
this.refresh();
this.modalRef.hide();
}
示例6:
this.bsModalRef.content.onClose = (myData) => {
this.refresh();
this.bsModalRef.hide();
this.myData = myData;
};
示例7:
() => {
this.modalRef.hide();
}