ng-bootstrap Modal size

前端 未结 9 2162
抹茶落季
抹茶落季 2020-12-29 18:25

What is the best way to set/override a custom width for a modal?

It seems ng-bootstrap currently supports

size: \'sm\' | \'lg\'

9条回答
  •  鱼传尺愫
    2020-12-29 19:09

    Add a argument class: 'modal-lg'

    open() {
            const modalRef = this.modalService.open(ModelComponent, { class: 'modal-lg', backdrop: 'static' });
        }
    
    }
    

提交回复
热议问题