0

I am creating a modal:

controller.buildingDetailsPopup = function () {
    var modalInstance = $uibModal.open({
        templateUrl: "/app/View/Partials/_biuldingDetailsPopup.html",
        controller: "biuldingDetailsPopupController",
        size: 'lg'

    });

is there a way to increase more big width via property size?

Cœur
  • 37,241
  • 25
  • 195
  • 267
user6355594
  • 1
  • 1
  • 1
  • 2
  • see [this](http://stackoverflow.com/questions/21311736/how-do-i-increase-modal-width-in-angular-ui-bootstrap/21312755#21312755) post – Rob J May 20 '16 at 11:32

3 Answers3

3

From the docs:

size (Type: string, Example: lg) - Optional suffix of modal window class. The value used is appended to the modal- class, i.e. a value of sm gives modal-sm.

Perhaps create your own CSS class and make it the size you want?

msanford
  • 11,803
  • 11
  • 66
  • 93
2

I would set the size option to my customOption(ex: mySize) and create a CSS class as below.

.modal-mySize {
   width: 1130px;
}
0

Hi you can override the css class for modal.

Example:

.modal-dialog {
    width: 35%;
}

    .modal-dialog .modal-lg {
        width: 60%;
    }
David
  • 641
  • 1
  • 8
  • 23