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