</div>
</header>
- <div class="container">
-
-
- <!-- Docs nav
- ================================================== -->
- <div class="row">
- <div class="span3 bs-docs-sidebar">
- <ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-y="80">
- <li><a href="#overview">Overview <i class="icon-chevron-right"></i></a></li>
- <li><a href="#transitions">Transitions <i class="icon-chevron-right"></i></a></li>
- <li><a href="#modals">Modal <i class="icon-chevron-right"></i></a></li>
- <li><a href="#dropdowns">Dropdown <i class="icon-chevron-right"></i></a></li>
- <li><a href="#scrollspy">Scrollspy <i class="icon-chevron-right"></i></a></li>
- <li><a href="#tabs">Tab <i class="icon-chevron-right"></i></a></li>
- <li><a href="#tooltips">Tooltip <i class="icon-chevron-right"></i></a></li>
- <li><a href="#popovers">Popover <i class="icon-chevron-right"></i></a></li>
- <li><a href="#alerts">Alert <i class="icon-chevron-right"></i></a></li>
- <li><a href="#buttons">Button <i class="icon-chevron-right"></i></a></li>
- <li><a href="#collapse">Collapse <i class="icon-chevron-right"></i></a></li>
- <li><a href="#carousel">Carousel <i class="icon-chevron-right"></i></a></li>
- <li><a href="#typeahead">Typeahead <i class="icon-chevron-right"></i></a></li>
- <li><a href="#affix">Affix <i class="icon-chevron-right"></i></a></li>
- </ul>
- </div>
- <div class="span9">
-
+
+ <div class="bs-docs-canvas">
- <!-- Overview
- ================================================== -->
- <section id="overview">
- <div class="page-header">
- <h1>Javascript in Bootstrap</h1>
- </div>
+ <div class="container">
- <h3>Individual or compiled</h3>
- <p>If you have downloaded the latest version of Bootstrap, both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all of the plugins listed on this page.</p>
+ <!-- Docs nav
+ ================================================== -->
+ <div class="row">
+ <div class="span3 bs-docs-sidebar">
- <ul class="nav nav-list bs-docs-sidenav">
++ <ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-y="80">
+ <li><a href="#overview">Overview <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#transitions">Transitions <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#modals">Modal <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#dropdowns">Dropdown <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#scrollspy">Scrollspy <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#tabs">Tab <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#tooltips">Tooltip <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#popovers">Popover <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#alerts">Alert <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#buttons">Button <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#collapse">Collapse <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#carousel">Carousel <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#typeahead">Typeahead <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#affix">Affix <i class="icon-chevron-right"></i></a></li>
+ </ul>
+ </div>
+ <div class="span9">
- <h3>Data attributes</h3>
- <p>You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.</p>
- <p>That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:
+ <!-- Overview
+ ================================================== -->
+ <section id="overview">
+ <div class="page-header">
+ <h1>Javascript in Bootstrap</h1>
+ </div>
- <pre class="prettyprint linenums">
- $('body').off('.data-api')
- </pre>
+ <h3>Individual or compiled</h3>
+ <p>If you have downloaded the latest version of Bootstrap, both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all of the plugins listed on this page.</p>
- <p>Alternatively, to target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this:</p>
+ <h3>Data attributes</h3>
+ <p>You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.</p>
- <pre class="prettyprint linenums">
- $('body').off('.alert.data-api')
- </pre>
+ <p>That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:
+ <pre class="prettyprint linenums">$('body').off('.data-api')</pre>
- <h3>Programmatic API</h3>
- <p>We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.</p>
+ <p>Alternatively, to target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this:</p>
+ <pre class="prettyprint linenums">$('body').off('.alert.data-api')</pre>
+ <h3>Programmatic API</h3>
+ <p>We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.</p>
+ <pre class="prettyprint linenums">$(".btn.danger").button("toggle").addClass("fat")</pre>
+ <p>All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):</p>
<pre class="prettyprint linenums">
- $(".btn.danger").button("toggle").addClass("fat")
+ $("#myModal").modal() // initialized with defaults
+ $("#myModal").modal({ keyboard: false }) // initialized with no keyboard
+ $("#myModal").modal('show') // initializes and invokes show immediately</p>
</pre>
+ <p>Each plugin also exposes it's raw constructor on a `Constructor` property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel=popover]').data('popover')</code>.</p>
- <p>All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):</p>
-
+ <h3>Events</h3>
+ <p>Bootstrap provides custom events for most plugin's unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. <code>show</code>) is triggered at the start of an event, and it's past participle form (ex. <code>shown</code>) is trigger on the completion of an action.</p>
+ <p>All infinitive events provide preventDefault functionality. This provides the abililty to stop the execution of an action before it starts.</p>
<pre class="prettyprint linenums">
- $("#myModal").modal() // initialized with defaults
- $("#myModal").modal({ keyboard: false }) // initialized with no keyboard
- $("#myModal").modal('show') // initializes and invokes show immediately</p>
- </pre>
-
- <p>Each plugin also exposes it's raw constructor on a `Constructor` property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel=popover]').data('popover')</code>.</p>
-
-
- <h3>Events</h3>
- <p>Bootstrap provides custom events for most plugin's unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. <code>show</code>) is triggered at the start of an event, and it's past participle form (ex. <code>shown</code>) is trigger on the completion of an action.</p>
-
- <p>All infinitive events provide preventDefault functionality. This provides the abililty to stop the execution of an action before it starts.</p>
-
- <pre class="prettyprint linenums">
- $('#myModal').on('show', function (e) {
- if (!data) return e.preventDefault() // stops modal from being shown
- })
+ $('#myModal').on('show', function (e) {
+ if (!data) return e.preventDefault() // stops modal from being shown
+ })
</pre>
+ </section>
- </section>
+ <!-- Transitions
+ ================================================== -->
+ <section id="transitions">
+ <div class="page-header">
+ <h1>Transitions <small>bootstrap-transition.js</small></h1>
+ </div>
+ <h3>About transitions</h3>
+ <p>For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.</p>
+ <h3>Use cases</h3>
+ <p>A few examples of the transition plugin:</p>
+ <ul>
+ <li>Sliding or fading in modals</li>
+ <li>Fading out tabs</li>
+ <li>Fading out alerts</li>
+ <li>Sliding carousel panes</li>
+ </ul>
- <!-- Transitions
- ================================================== -->
- <section id="transitions">
- <div class="page-header">
- <h1>Transitions <small>bootstrap-transition.js</small></h1>
- </div>
- <h3>About transitions</h3>
- <p>For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.</p>
- <h3>Use cases</h3>
- <p>A few examples of the transition plugin:</p>
- <ul>
- <li>Sliding or fading in modals</li>
- <li>Fading out tabs</li>
- <li>Fading out alerts</li>
- <li>Sliding carousel panes</li>
- </ul>
+ </section>
- </section>
+ <!-- Modal
+ ================================================== -->
+ <section id="modals">
+ <div class="page-header">
+ <h1>Modals <small>bootstrap-modal.js</small></h1>
+ </div>
- <!-- Modal
- ================================================== -->
- <section id="modals">
- <div class="page-header">
- <h1>Modals <small>bootstrap-modal.js</small></h1>
- </div>
+ <h2>Examples</h2>
+ <p>Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.</p>
- <h2>Examples</h2>
- <p>Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.</p>
-
- <h3>Static example</h3>
- <p>A rendered modal with header, body, and set of actions in the footer.</p>
- <div class="bs-docs-example" style="background-color: #f5f5f5;">
- <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal">×</button>
- <h3>Modal header</h3>
- </div>
- <div class="modal-body">
- <p>One fine body…</p>
- </div>
- <div class="modal-footer">
- <a href="#" class="btn">Close</a>
- <a href="#" class="btn btn-primary">Save changes</a>
+ <h3>Static example</h3>
+ <p>A rendered modal with header, body, and set of actions in the footer.</p>
+ <div class="bs-docs-example" style="background-color: #f5f5f5;">
+ <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal">×</button>
+ <h3>Modal header</h3>
+ </div>
+ <div class="modal-body">
+ <p>One fine body…</p>
+ </div>
+ <div class="modal-footer">
+ <a href="#" class="btn">Close</a>
+ <a href="#" class="btn btn-primary">Save changes</a>
+ </div>
+ </div>
</div>
- </div>
- </div>
<pre class="prettyprint linenums">
<div class="modal hide fade">
<div class="modal-header">
</div>
</header>
- <div class="container">
-
-
- <!-- Docs nav
- ================================================== -->
- <div class="row">
- <div class="span3 bs-docs-sidebar">
- <ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-y="80">
- <li><a href="#overview">{{_i}}Overview{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#transitions">{{_i}}Transitions{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#modals">{{_i}}Modal{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#dropdowns">{{_i}}Dropdown{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#scrollspy">{{_i}}Scrollspy{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#tabs">{{_i}}Tab{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#tooltips">{{_i}}Tooltip{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#popovers">{{_i}}Popover{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#alerts">{{_i}}Alert{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#buttons">{{_i}}Button{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#collapse">{{_i}}Collapse{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#carousel">{{_i}}Carousel{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#typeahead">{{_i}}Typeahead{{/i}} <i class="icon-chevron-right"></i></a></li>
- <li><a href="#affix">{{_i}}Affix{{/i}} <i class="icon-chevron-right"></i></a></li>
- </ul>
- </div>
- <div class="span9">
-
-
-
- <!-- Overview
- ================================================== -->
- <section id="overview">
- <div class="page-header">
- <h1>{{_i}}Javascript in Bootstrap{{/i}}</h1>
- </div>
-
- <h3>{{_i}}Individual or compiled{{/i}}</h3>
- <p>{{_i}}If you have downloaded the latest version of Bootstrap, both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all of the plugins listed on this page.{{/i}}</p>
+ <div class="bs-docs-canvas">
- <h3>{{_i}}Data attributes{{/i}}</h3>
- <p>{{_i}}You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.{{/i}}</p>
+ <div class="container">
- <p>{{_i}}That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:{{/i}}
+ <!-- Docs nav
+ ================================================== -->
+ <div class="row">
+ <div class="span3 bs-docs-sidebar">
- <ul class="nav nav-list bs-docs-sidenav">
++ <ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-y="80">
+ <li><a href="#overview">{{_i}}Overview{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#transitions">{{_i}}Transitions{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#modals">{{_i}}Modal{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#dropdowns">{{_i}}Dropdown{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#scrollspy">{{_i}}Scrollspy{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#tabs">{{_i}}Tab{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#tooltips">{{_i}}Tooltip{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#popovers">{{_i}}Popover{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#alerts">{{_i}}Alert{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#buttons">{{_i}}Button{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#collapse">{{_i}}Collapse{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#carousel">{{_i}}Carousel{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#typeahead">{{_i}}Typeahead{{/i}} <i class="icon-chevron-right"></i></a></li>
+ <li><a href="#affix">{{_i}}Affix{{/i}} <i class="icon-chevron-right"></i></a></li>
+ </ul>
+ </div>
+ <div class="span9">
- <pre class="prettyprint linenums">
- $('body').off('.data-api')
- </pre>
- <p>{{_i}}Alternatively, to target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this:{{/i}}</p>
+ <!-- Overview
+ ================================================== -->
+ <section id="overview">
+ <div class="page-header">
+ <h1>{{_i}}Javascript in Bootstrap{{/i}}</h1>
+ </div>
- <pre class="prettyprint linenums">
- $('body').off('.alert.data-api')
- </pre>
+ <h3>{{_i}}Individual or compiled{{/i}}</h3>
+ <p>{{_i}}If you have downloaded the latest version of Bootstrap, both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all of the plugins listed on this page.{{/i}}</p>
- <h3>{{_i}}Programmatic API{{/i}}</h3>
- <p>{{_i}}We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.{{/i}}</p>
+ <h3>{{_i}}Data attributes{{/i}}</h3>
+ <p>{{_i}}You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.{{/i}}</p>
- <pre class="prettyprint linenums">
- $(".btn.danger").button("toggle").addClass("fat")
- </pre>
+ <p>{{_i}}That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:{{/i}}
+ <pre class="prettyprint linenums">$('body').off('.data-api')</pre>
- <p>{{_i}}All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):{{/i}}</p>
+ <p>{{_i}}Alternatively, to target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this:{{/i}}</p>
+ <pre class="prettyprint linenums">$('body').off('.alert.data-api')</pre>
+ <h3>{{_i}}Programmatic API{{/i}}</h3>
+ <p>{{_i}}We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.{{/i}}</p>
+ <pre class="prettyprint linenums">$(".btn.danger").button("toggle").addClass("fat")</pre>
+ <p>{{_i}}All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):{{/i}}</p>
<pre class="prettyprint linenums">
- $("#myModal").modal() // initialized with defaults
- $("#myModal").modal({ keyboard: false }) // initialized with no keyboard
- $("#myModal").modal('show') // initializes and invokes show immediately</p>
+ $("#myModal").modal() // initialized with defaults
+ $("#myModal").modal({ keyboard: false }) // initialized with no keyboard
+ $("#myModal").modal('show') // initializes and invokes show immediately</p>
</pre>
+ <p>{{_i}}Each plugin also exposes it's raw constructor on a `Constructor` property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel=popover]').data('popover')</code>.{{/i}}</p>
- <p>{{_i}}Each plugin also exposes it's raw constructor on a `Constructor` property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel=popover]').data('popover')</code>.{{/i}}</p>
-
-
- <h3>{{_i}}Events{{/i}}</h3>
- <p>{{_i}}Bootstrap provides custom events for most plugin's unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. <code>show</code>) is triggered at the start of an event, and it's past participle form (ex. <code>shown</code>) is trigger on the completion of an action.{{/i}}</p>
-
- <p>{{_i}}All infinitive events provide preventDefault functionality. This provides the abililty to stop the execution of an action before it starts.{{/i}}</p>
-
+ <h3>{{_i}}Events{{/i}}</h3>
+ <p>{{_i}}Bootstrap provides custom events for most plugin's unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. <code>show</code>) is triggered at the start of an event, and it's past participle form (ex. <code>shown</code>) is trigger on the completion of an action.{{/i}}</p>
+ <p>{{_i}}All infinitive events provide preventDefault functionality. This provides the abililty to stop the execution of an action before it starts.{{/i}}</p>
<pre class="prettyprint linenums">
- $('#myModal').on('show', function (e) {
- if (!data) return e.preventDefault() // stops modal from being shown
- })
+ $('#myModal').on('show', function (e) {
+ if (!data) return e.preventDefault() // stops modal from being shown
+ })
</pre>
+ </section>
- </section>
+ <!-- Transitions
+ ================================================== -->
+ <section id="transitions">
+ <div class="page-header">
+ <h1>{{_i}}Transitions{{/i}} <small>bootstrap-transition.js</small></h1>
+ </div>
+ <h3>{{_i}}About transitions{{/i}}</h3>
+ <p>{{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.{{/i}}</p>
+ <h3>{{_i}}Use cases{{/i}}</h3>
+ <p>{{_i}}A few examples of the transition plugin:{{/i}}</p>
+ <ul>
+ <li>{{_i}}Sliding or fading in modals{{/i}}</li>
+ <li>{{_i}}Fading out tabs{{/i}}</li>
+ <li>{{_i}}Fading out alerts{{/i}}</li>
+ <li>{{_i}}Sliding carousel panes{{/i}}</li>
+ </ul>
- <!-- Transitions
- ================================================== -->
- <section id="transitions">
- <div class="page-header">
- <h1>{{_i}}Transitions{{/i}} <small>bootstrap-transition.js</small></h1>
- </div>
- <h3>{{_i}}About transitions{{/i}}</h3>
- <p>{{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.{{/i}}</p>
- <h3>{{_i}}Use cases{{/i}}</h3>
- <p>{{_i}}A few examples of the transition plugin:{{/i}}</p>
- <ul>
- <li>{{_i}}Sliding or fading in modals{{/i}}</li>
- <li>{{_i}}Fading out tabs{{/i}}</li>
- <li>{{_i}}Fading out alerts{{/i}}</li>
- <li>{{_i}}Sliding carousel panes{{/i}}</li>
- </ul>
+ {{! Ideas: include docs for .fade.in, .slide.in, etc }}
+ </section>
- {{! Ideas: include docs for .fade.in, .slide.in, etc }}
- </section>
+ <!-- Modal
+ ================================================== -->
+ <section id="modals">
+ <div class="page-header">
+ <h1>{{_i}}Modals{{/i}} <small>bootstrap-modal.js</small></h1>
+ </div>
- <!-- Modal
- ================================================== -->
- <section id="modals">
- <div class="page-header">
- <h1>{{_i}}Modals{{/i}} <small>bootstrap-modal.js</small></h1>
- </div>
+ <h2>{{_i}}Examples{{/i}}</h2>
+ <p>{{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}</p>
- <h2>{{_i}}Examples{{/i}}</h2>
- <p>{{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}</p>
-
- <h3>{{_i}}Static example{{/i}}</h3>
- <p>{{_i}}A rendered modal with header, body, and set of actions in the footer.{{/i}}</p>
- <div class="bs-docs-example" style="background-color: #f5f5f5;">
- <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal">×</button>
- <h3>{{_i}}Modal header{{/i}}</h3>
- </div>
- <div class="modal-body">
- <p>{{_i}}One fine body…{{/i}}</p>
- </div>
- <div class="modal-footer">
- <a href="#" class="btn">{{_i}}Close{{/i}}</a>
- <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
- </div>
- </div>
- </div>{{! /example }}
+ <h3>{{_i}}Static example{{/i}}</h3>
+ <p>{{_i}}A rendered modal with header, body, and set of actions in the footer.{{/i}}</p>
+ <div class="bs-docs-example" style="background-color: #f5f5f5;">
+ <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal">×</button>
+ <h3>{{_i}}Modal header{{/i}}</h3>
+ </div>
+ <div class="modal-body">
+ <p>{{_i}}One fine body…{{/i}}</p>
+ </div>
+ <div class="modal-footer">
+ <a href="#" class="btn">{{_i}}Close{{/i}}</a>
+ <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
+ </div>
+ </div>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
<div class="modal hide fade">
<div class="modal-header">