-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Upgrade Modal script for Bootstrap 3.1 #1718
Comments
You could create 2 additional templates for now, but I agree with you that this should be supported. Edit: You can use the windowClass for this. |
Yeah, the plan could be updating what is needed to 3.1, but we just need to finish some stuff first and I guess that we could start the updating :) |
@Gamemaniak I don't think |
@pkozlowski-opensource You're right, should've read the documentation better. I'm curious about your ideas as this is becoming quite a common problem. |
@Gamemaniak see this comment: #1706 (comment) - this is more or less the idea I've got on my mind. The reasoning here is that users might want to re-use the same custom template URL so it makes sense to name it as a "family" (ex., for modals, sth like "normal", "small", "big", "mycustom") instead of re-typing the full URL on each usage. |
I'm also trying to get this new Bootstrap functionality working with the modal directive, but as @pkozlowski-opensource states; you can add the |
@Siyfion Speaking from total ignorance of bootstrap 3.1, if you need to add a class to the template, you can always provide your own template. We will update our stuff to 3.1 for sure, but we have a lot of more work to do :) |
@Foxandxss I do provide my own template, but the |
@Siyfion I meant the parent template. In this library you can always provide your templates to every directive (I am not talking about the directive you use to create a modal). |
In the meantime you can use
|
I haven't been able to get windowClass to work, but I will give it another try. |
Oops, I'm a dummy, didn't mean to close the issue. |
+1 I really need modal-lg and modal-sm in my application. |
See #1885, considering that. |
Thanks Chris! |
Well that's certainly one way of doing it, and it works! |
@pkozlowski-opensource How are we looking for a release version containing this change? It's going to be such a useful addition, want to get my hands on it! 😉 |
Bootstrap 3.1 adds some modal configurability, 2 classes modal-lg and modal-sm that need to be added to the div where modal-dialog lives, however, angularUI-bootstrap builds the modal down to the modal-content level, so we can't add those classes without a destructive jQuery.
The text was updated successfully, but these errors were encountered: