-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make the Model Large same as bootstrap Model #1549
Comments
When you are opening the modal in your typescript class, the second parameter is the NgbModalOptions object, which includes the size parameter ( Size is mentioned in the docs, referenced here: Source code to see how this translates into the rendered template Example openModal(content) {
this.modalService.open(content, {size: 'lg'}).result
.then((result) => {
}, (reason) => {
});
} <ng-template #modalContent let-c="close" let-d="dismiss" id="modal-container">
<div class="modal-header">
<button type="button" class="close" aria-label="Close" (click)="d('exit')">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">modal title</h4>
</div>
<div class="modal-body">
some stuff in the body
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger float-left" (click)="c('close-button')">Cancel</button>
<button type="button" class="btn btn-success float-right" (click)="someAction(c)">
Submit
</button>
</div>
</ng-template>
<button class="btn btn-success" (click)="openModal(modalContent)"></button> |
Thnx for helping out with the issues @paustint - much appreciated! |
Hi, did that solutions worked? I have tried multiple times this, but the modal is really small.
|
you can put a class name on open using use '::ng-deep' for strong code and target the modal-dialog class |
Hello ! any help please. Thank you! |
now the Model has class name as 'modal-dialog' , how can i use
<div class="modal-dialog modal-lg">
to make the Model large ?
The text was updated successfully, but these errors were encountered: