powmedia / backbone.bootstrap-modal

Bootstrap Modal wrapper for use with Backbone.
MIT License
183 stars 97 forks source link

Multiple modals with different width #55

Open shubh0602 opened 10 years ago

shubh0602 commented 10 years ago

Your plugin has proved to be great help. Thanks.

Can I know, if I have three modals with different width how can I handle it? Is there anything which is configurable?

Its not an issue, actually. I may be hitting wrong place, please let me know if this is true. Regards,

shubh0602 commented 10 years ago

What I have done now is , I have created an extra property 'customCss' which will hold CSS class initialize: function (options) { this.options = _.extend({ title: null, okText: 'OK', focusOk: true, okCloses: true, cancelText: 'Cancel', showFooter: true, allowCancel: true, escape: true, animate: false, template: template, enterTriggersOk: false, customCss: '' }, options); }, `var template = _.template('\

powmedia commented 10 years ago

Yes that could work; you could also provide a custom template with the template option. But for your case a CSS class is probably best