diff --git a/docs/base-css.html b/docs/base-css.html index 91cb4ec70b..6485d76a22 100644 --- a/docs/base-css.html +++ b/docs/base-css.html @@ -22,11 +22,10 @@ -
- +Notice If you want your modal to animate in and out, just add a .fade
class to the .modal
element (refer to the demo to see this in action).
Activates your content as a modal. Accepts an optional options object
.
+
Activates your content as a modal. Accepts an optional options object
.
$('#myModal').modal({ keyboard: false @@ -314,7 +313,7 @@ $('#myModal').modal({Manually hides a modal.
$('#myModal').modal('hide')Events
-Bootstrap's modal class exposes a few events for hooking into modal functionality.
+Bootstrap's modal class exposes a few events for hooking into modal functionality.
Name | -type | -default | -description | +{{_i}}Name{{/i}} | +{{_i}}type{{/i}} | +{{_i}}default{{/i}} | +{{_i}}description{{/i}} |
---|---|---|---|---|---|---|---|
backdrop | -boolean | -true | -Includes a modal-backdrop element | +{{_i}}backdrop{{/i}} | +{{_i}}boolean{{/i}} | +{{_i}}true{{/i}} | +{{_i}}Includes a modal-backdrop element{{/i}} |
keyboard | -boolean | -true | -Closes the modal when escape key is pressed | +{{_i}}keyboard{{/i}} | +{{_i}}boolean{{/i}} | +{{_i}}true{{/i}} | +{{_i}}Closes the modal when escape key is pressed{{/i}} |
You can activate modals on your page easily without having to write a single line of javascript. Just set data-toggle="modal"
on a controller element with a data-target="#foo"
or href="#foo"
which corresponds to a modal element id, and when clicked, it will launch your modal.
Also, to add options to your modal instance, just include them as additional data attributes on either the control element or the modal markup itself.
+{{_i}}You can activate modals on your page easily without having to write a single line of javascript. Just set data-toggle="modal"
on a controller element with a data-target="#foo"
or href="#foo"
which corresponds to a modal element id, and when clicked, it will launch your modal.
Also, to add options to your modal instance, just include them as additional data attributes on either the control element or the modal markup itself.{{/i}}
-<a class="btn" data-toggle="modal" href="#myModal" >Launch Modal</a> +<a class="btn" data-toggle="modal" href="#myModal" >{{_i}}Launch Modal{{/i}}</a>
@@ -227,63 +227,63 @@ <h3>Modal header</h3> </div> <div class="modal-body"> - <p>One fine body…</p> + <p>{{_i}}One fine body…{{/i}}</p> </div> <div class="modal-footer"> - <a href="#" class="btn primary">Save changes</a> - <a href="#" class="btn">Close</a> + <a href="#" class="btn primary">{{_i}}Save changes{{/i}}</a> + <a href="#" class="btn">{{_i}}Close{{/i}}</a> </div> </div>-
Notice If you want your modal to animate in and out, just add a .fade
class to the .modal
element (refer to the demo to see this in action).
Activates your content as a modal. Accepts an optional options object
.
+
{{_i}}Notice If you want your modal to animate in and out, just add a .fade
class to the .modal
element (refer to the demo to see this in action).{{/i}}
{{_i}}Activates your content as a modal. Accepts an optional options object
.{{/i}}
$('#myModal').modal({ keyboard: false })
Manually toggles a modal.
+{{_i}}Manually toggles a modal.{{/i}}
$('#myModal').modal('toggle')
Manually opens a modal.
+{{_i}}Manually opens a modal.{{/i}}
$('#myModal').modal('show')
Manually hides a modal.
+{{_i}}Manually hides a modal.{{/i}}
$('#myModal').modal('hide')-
Bootstrap's modal class exposes a few events for hooking into modal functionality.
+{{_i}}Bootstrap's modal class exposes a few events for hooking into modal functionality.{{/i}}
Event | -Description | +{{_i}}Event{{/i}} | +{{_i}}Description{{/i}} |
---|---|---|---|
show | -This event fires immediately when the show instance method is called. |
+ {{_i}}show{{/i}} | +{{_i}}This event fires immediately when the show instance method is called.{{/i}} |
shown | -This event is fired when the modal has been made visible to the user (will wait for css transitions to complete). | +{{_i}}shown{{/i}} | +{{_i}}This event is fired when the modal has been made visible to the user (will wait for css transitions to complete).{{/i}} |
hide | -This event is fired immediately when the hide instance method has been called. |
+ {{_i}}hide{{/i}} | +{{_i}}This event is fired immediately when the hide instance method has been called.{{/i}} |
hidden | -This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete). | +{{_i}}hidden{{/i}} | +{{_i}}This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete).{{/i}} |
$('#myModal').on('hidden', function () { - // do something ... + // {{_i}}do something…{{/i}} })
Add dropdown menus to nearly anything in Bootstrap with this simple plugin. Bootstrap features full dropdown menu support on in the navbar, tabs, and pills.
- Download file +{{_i}}Add dropdown menus to nearly anything in Bootstrap with this simple plugin. Bootstrap features full dropdown menu support on in the navbar, tabs, and pills.{{/i}}
+ {{_i}}Download file{{/i}}Click on the dropdown nav links in the navbar and pills below to test dropdowns.
+{{_i}}Click on the dropdown nav links in the navbar and pills below to test dropdowns.{{/i}}
Call the dropdowns via javascript:
+{{_i}}Call the dropdowns via javascript:{{/i}}
$('.dropdown-toggle').dropdown()-
To quickly add dropdown functionality to any element just add data-toggle="dropdown"
and any valid bootstrap dropdown will automatically be activated.
Notice For added control and flexibility, optionally specify a data-target="#fat"
or href="#fat"
- this allows you to target specific dropdowns.
{{_i}}To quickly add dropdown functionality to any element just add data-toggle="dropdown"
and any valid bootstrap dropdown will automatically be activated.{{/i}}
{{_i}}Notice For added control and flexibility, optionally specify a data-target="#fat"
or href="#fat"
- this allows you to target specific dropdowns.{{/i}}
<ul class="nav pills"> <li class="active"><a href="#">Regular link</a></li> <li class="dropdown" id="menu1"> <a class="dropdown-toggle" data-toggle="dropdown" href="#menu1"> - Dropdown + {{_i}}Dropdown{{/i}} <b class="caret"></b> </a> <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> + <li><a href="#">{{_i}}Action{{/i}}</a></li> + <li><a href="#">{{_i}}Another action{{/i}}</a></li> + <li><a href="#">{{_i}}Something else here{{/i}}</a></li> <li class="divider"></li> - <li><a href="#">Separated link</a></li> + <li><a href="#">{{_i}}Separated link{{/i}}</a></li> </ul> </li> ... </ul>-
- A programatic api for activating menus for a given navbar or tabbed navigation. -
+{{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}
The ScrollSpy plugin is for automatically updating nav targets based on scroll position.
- Download file +{{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position.{{/i}}
+ {{_i}}Download file{{/i}}Scroll the area below and watch the navigation update. The dropdown sub items will be highlighted as well. Try it!
+{{_i}}Scroll the area below and watch the navigation update. The dropdown sub items will be highlighted as well. Try it!{{/i}}
Call the scrollspy via javascript:
+{{_i}}Call the scrollspy via javascript:{{/i}}
$('#navbar').scrollspy()-
To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll"
to the element you want to spy on (most typically this would be the body).
+
{{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll"
to the element you want to spy on (most typically this would be the body).{{/i}}
<body data-spy="scroll" >...</body>-
Notice Navbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a>
must correspond to something in the dom like <div id="home"></div>
.
-
{{_i}}Notice Navbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a>
must correspond to something in the dom like <div id="home"></div>
.{{/i}}
Name | -type | -default | -description | +{{_i}}Name{{/i}} | +{{_i}}type{{/i}} | +{{_i}}default{{/i}} | +{{_i}}description{{/i}} |
---|---|---|---|---|---|---|---|
offset | -number | -10 | -Pixels to offset from top when calculating position of scroll. | +{{_i}}offset{{/i}} | +{{_i}}number{{/i}} | +{{_i}}10{{/i}} | +{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}} |
This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.
- Download file +{{_i}}This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.{{/i}}
+ {{_i}}Download file{{/i}}Click the tabs below to toggle between hidden panes, even via dropdown menus.
+{{_i}}Click the tabs below to toggle between hidden panes, even via dropdown menus.{{/i}}
Enable tabbable tabs via javascript:
+{{_i}}Enable tabbable tabs via javascript:{{/i}}
$('#myTab').tab('show')-
You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab"
or data-toggle="pill"
on an element.
{{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab"
or data-toggle="pill"
on an element.{{/i}}
<ul class="tabs"> - <li><a href="#home" data-toggle="tab">Home</a></li> - <li><a href="#profile" data-toggle="tab">Profile</a></li> - <li><a href="#messages" data-toggle="tab">Messages</a></li> - <li><a href="#ettings" data-toggle="tab">Settings</a></li> + <li><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li> + <li><a href="#profile" data-toggle="tab">{{_i}}Profile{{/i}}</a></li> + <li><a href="#messages" data-toggle="tab">{{_i}}Messages{{/i}}</a></li> + <li><a href="#ettings" data-toggle="tab">{{_i}}Settings{{/i}}</a></li> </ul>-
- Activates a tab element and content container. Tab should have either a `data-target` or an `href` targeting a container node in the dom. + {{_i}}Activates a tab element and content container. Tab should have either a `data-target` or an `href` targeting a container node in the dom.{{/i}}
<ul class="tabs"> - <li class="active"><a href="#home">Home</a></li> - <li><a href="#profile">Profile</a></li> - <li><a href="#messages">Messages</a></li> - <li><a href="#settings">Settings</a></li> + <li class="active"><a href="#home">{{_i}}Home{{/i}}</a></li> + <li><a href="#profile">{{_i}}Profile{{/i}}</a></li> + <li><a href="#messages">{{_i}}Messages{{/i}}</a></li> + <li><a href="#settings">{{_i}}Settings{{/i}}</a></li> </ul> <div class="tab-content"> @@ -589,22 +587,22 @@ $('#myModal').on('hidden', function () { }) </script>-
Event | -Description | +{{_i}}Event{{/i}} | +{{_i}}Description{{/i}} |
---|---|---|---|
show | -This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively. |
+ {{_i}}show{{/i}} | +{{_i}}This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}} |
shown | -This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively. |
+ {{_i}}shown{{/i}} | +{{_i}}This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.{{/i}} |
Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, uss css3 for animations, and data-attributes for local title storage.
- Download file +{{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, uss css3 for animations, and data-attributes for local title storage.{{/i}}
+ {{_i}}Download file{{/i}}Hover over the links below to see tooltips:
+{{_i}}Hover over the links below to see tooltips:{{/i}}
Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral. +
{{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}}
Trigger the tooltip via javascript:
-$('#example').tooltip(options)-
{{_i}}Trigger the tooltip via javascript:{{/i}}
+$('#example').tooltip({{_i}}options{{/i}})+
Name | -type | -default | -description | +{{_i}}Name{{/i}} | +{{_i}}type{{/i}} | +default{{/i}} | +{{_i}}description{{/i}} |
---|---|---|---|---|---|---|---|
animation | -boolean | +{{_i}}animation{{/i}} | +{{_i}}boolean{{/i}} | true | -apply a css fade transition to the tooltip | +{{_i}}apply a css fade transition to the tooltip{{/i}} | |
placement | diff --git a/docs/upgrading.html b/docs/upgrading.html index ee18cbeb07..7dab4c0000 100644 --- a/docs/upgrading.html +++ b/docs/upgrading.html @@ -22,11 +22,10 @@ - - +