Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple modals with different width #55

Open
shubh0602 opened this issue Jan 16, 2014 · 2 comments
Open

Multiple modals with different width #55

shubh0602 opened this issue Jan 16, 2014 · 2 comments

Comments

@shubh0602
Copy link

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
Copy link
Author

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('\ <div class="modal-dialog {{customCss}}"><div class="modal-content">\

Hope this is correct. Any suggestions?

@powmedia
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants