Is there a quick way to adjust the modal width for the modalManager? Didnt see any options for width in ModalManager.js, wondering if it could be accomplished easily via jQuery but the Modal_ + (Math.floor((Math.random() * .... + new Date().getTime(); seems a bit difficult to "key" off of...
Thoughts appreciated as always!
8 Answer(s)
-
0
Just asking - I rubber duckied my way to the solution :)
ModalManager - getModalId() and jQuery to modify the css.
$thisModal = $('#' + _modalManager.getModalId()).find(".modal-content").css({ "width": "900px", "margin-left": "-10px" });
-
0
It seems fine. As alternative, you can provide modalId as option. It's generated randomly if you don't provide it (<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/master/src/MyCompanyName.AbpZeroTemplate.Web/Common/Scripts/ModalManager.js#L11">https://github.com/aspnetzero/aspnet-ze ... ger.js#L11</a>).
-
0
How to achieve the same thing in SPA Application ?
-
0
In SPA, we use standard $uiModal. You can see it's documentation: <a class="postlink" href="https://angular-ui.github.io/bootstrap/#/modal">https://angular-ui.github.io/bootstrap/#/modal</a> There is a size option there.
-
0
Dear Sir
How to set the Modal Width for all the Modal in the application in SPA ?
Thanks again.
-
0
Hi,
I don't know if there is such a global configuration. You can check bootstrap and ui-bootstrap docs for it. We use size option for all modals.
-
0
Where to change the Size for all the modals ?
-
0
I could not understand the difference between previous question, sorry.