Open spchuang opened 10 years ago
You can do this by passing in a custom template and within that template use other parameters to apply your classes. I use a template that has the following: div class="col-md-<%= col %> col-md-offset-<%= ((12-col)/2) %>" style="padding:0px; margin-top:30px;" Then when I create the modal I pass in the col parameter and I get bootstrap col's as my width.
EDIT: But a proper div with < and >. Not sure how to post code here.
I suggest adding an option that will append a class to the modal-dialog div. This allows us to set custom width or styling if necessary to override the default behavior.