Comments (1)
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.
from backbone.bootstrap-modal.
Related Issues (20)
- Events in the view HOT 1
- shown event not working HOT 1
- RequireJS/AMD question HOT 1
- Scroll to top of bootstrap modal.
- Multiple modals with different width HOT 2
- Bootstrap modal "shown" event not working when "animate" property is set to "false" HOT 4
- Please publish 0.9.1 with Bootstrap 3 support into Bower
- How to NOT display the Cancel and OK buttons? HOT 1
- preventClose() does not work properly with 'cancel' event
- Closing bootstrap alerts inside a modal closes the modal.
- Impossible to disable Esc key functionality
- return data HOT 2
- Negative z-index issue with multiple modals (and possible solution)
- on Hide/Hidden event missing when clicked outside the modal HOT 1
- Template not working...
- Closing topmost stacked modal causes body to lose "modal-open" class HOT 1
- Close button
- Any advice on using with r.js optimizer?
- Swap out modal views dynamically
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backbone.bootstrap-modal.