How to make the Model Large same as bootstrap Model
See original GitHub issuenow the Model has class name as ‘modal-dialog’ , how can i use <div class="modal-dialog modal-lg">
to make the Model large ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Trying to make bootstrap modal wider - Stack Overflow
Now, you can make your modal be XXL size simply by adding the .modal-xxl modifier class to your .modal-dialog , and your modal...
Read more >Modal - Bootstrap
Utilize the Bootstrap grid system within a modal by nesting .container-fluid within the .modal-body . Then, use the normal grid system classes as...
Read more >Bootstrap Modal Sizing - free examples & tutorial
Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more....
Read more >Bootstrap Modal Plugin - W3Schools
Change the size of the modal by adding the .modal-sm class for small modals or .modal-lg class for large modals. Add the size...
Read more >Bootstrap 3 Tutorial 83 - Modal Sizing - YouTube
Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
you can put a class name on open using ts this.modalService.open(component, { windowClass: ‘classname’});
use ‘::ng-deep’ for strong code and target the modal-dialog class css ::ng-deep .classname .modal-dialog{ max-width: 90%; width: 90%; }
When you are opening the modal in your typescript class, the second parameter is the NgbModalOptions object, which includes the size parameter (
lg
orsm
).Size is mentioned in the docs, referenced here: https://ng-bootstrap.github.io/#/components/modal
Source code to see how this translates into the rendered template https://github.com/ng-bootstrap/ng-bootstrap/blob/master/src/modal/modal.ts https://github.com/ng-bootstrap/ng-bootstrap/blob/master/src/modal/modal-window.ts
Example