【发布时间】:2020-10-21 14:06:08
【问题描述】:
我正在尝试为使用 BsModalService 创建的模式定义新宽度。 我不能通过给他一个自定义课程来改变它。只能使用给定的类,例如“modal-xl”。 为什么?我应该在哪个文件中设置类样式?
openModal() {
const initialState = {
type: 'form',
headerTitle: 'Modal',
actionButtonLabel: 'Submit',
onConfirmation: this.onSubmitCliked
};
this.modalRef = this.bsModalService.show(
ModalComponent,
Object.assign({ initialState }, { class: 'kushkush' }));
}
【问题讨论】:
-
它在 ngx-bootstrap 6.2.0 版中为我工作!,也许问题出在其他地方
标签: angular ngx-bootstrap-modal