Base solution for your next web application
Open Closed

ModalManager.js question #1259


User avatar
0
joe704la created

I want to be able to use the large modal like on here (<a class="postlink" href="https://angular-ui.github.io/bootstrap/#/modal">https://angular-ui.github.io/bootstrap/#/modal</a>) I am trying to figure out a way I can pass an attribute to the open modal function that when "large" is passed in that it will use the large width modal instead of the default one.

Would you have any suggestions on how I could achieve this?


1 Answer(s)
  • User Avatar
    0
    joe704la created

    I should have read further down. All I needed to do was add the size parameter. For example like below...

    var modalInstance = $uibModal.open({
                        templateUrl: '~/App/tenant/views/client/businessModal.cshtml',
                        controller: 'tenant.views.client.businessModal as vm',
                        backdrop: 'static',
                        size: 'lg',
                        resolve: {
                            mrn: function () {
                                return clientId;
                            }
                        }