From 4d153b912587ef8a8dc77ba67557ea70db757bee Mon Sep 17 00:00:00 2001 From: fyquah95 Date: Wed, 1 Apr 2015 17:43:32 +0800 Subject: indented javascript/modal/using-grid-system sample code from 4 spaces to 2 spaces --- docs/_includes/js/modal.html | 72 ++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'docs/_includes') diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html index 92adb3af5..59fc80dae 100644 --- a/docs/_includes/js/modal.html +++ b/docs/_includes/js/modal.html @@ -270,47 +270,47 @@ $('#myModal').on('shown.bs.modal', function () { {% highlight html %}

Source code

Source Less, JavaScript, and font files, along with our docs. Requires a Less compiler and some setup.

- Download source + Download source

Sass

Bootstrap ported from Less to Sass for easy inclusion in Rails, Compass, or Sass-only projects.

- Download Sass + Download Sass

-- cgit v1.2.3 From 85235c55acffd1f3f2d2cdd0414828b21aa070b7 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sat, 2 May 2015 13:01:55 -0700 Subject: Document Affix plugin's `checkPosition` method Fixes #16361 Refs #16356 [skip sauce] --- docs/_includes/js/affix.html | 13 +++++++++++++ docs/_includes/nav/javascript.html | 1 + 2 files changed, 14 insertions(+) (limited to 'docs/_includes') diff --git a/docs/_includes/js/affix.html b/docs/_includes/js/affix.html index c94efc03f..bdd896b82 100644 --- a/docs/_includes/js/affix.html +++ b/docs/_includes/js/affix.html @@ -74,6 +74,19 @@ $('#myAffix').affix({ +

Methods

+ +

.affix(options)

+

Activates your content as affixed content. Accepts an optional options object.

+{% highlight js %} +$('#myAffix').affix({ + offset: 15 +}) +{% endhighlight %} + +

.affix('checkPosition')

+

Recalculates the state of the affix based on the dimensions, position, and scroll position of the relevant elements. The .affix, .affix-top, and .affix-bottom classes are added to or removed from the affixed content according to the new state. This method needs to be called whenever the dimensions of the affixed content or the target element are changed, to ensure correct positioning of the affixed content.

+ {% highlight js %}$('#myAffix').affix('checkPosition'){% endhighlight %}

Events

Bootstrap's affix plugin exposes a few events for hooking into affix functionality.

diff --git a/docs/_includes/nav/javascript.html b/docs/_includes/nav/javascript.html index eba53771b..de9834248 100644 --- a/docs/_includes/nav/javascript.html +++ b/docs/_includes/nav/javascript.html @@ -117,6 +117,7 @@
  • Examples
  • Usage
  • Options
  • +
  • Methods
  • Events
  • -- cgit v1.2.3 From 75d6c14dc982300728a4c7016a9d7d856869bc3c Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sat, 2 May 2015 18:20:59 -0700 Subject: Document that 'manual' is mutually exclusive of other tooltip/popover triggers Closes #16122 [skip sauce] --- docs/_includes/js/popovers.html | 2 +- docs/_includes/js/tooltips.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/_includes') diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html index a782a1204..9e2532733 100644 --- a/docs/_includes/js/popovers.html +++ b/docs/_includes/js/popovers.html @@ -229,7 +229,7 @@ sagittis lacus vel augue laoreet rutrum faucibus."> trigger string 'click' - How popover is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. + How popover is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. manual cannot be combined with any other trigger. viewport diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 5b399a5f3..991c0c9c9 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -195,7 +195,7 @@ $('#example').tooltip(options) trigger string 'hover focus' - How tooltip is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. + How tooltip is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. manual cannot be combined with any other trigger. viewport -- cgit v1.2.3 From 1f5519b981fe4dc9a8d9f423b9b777476afecd45 Mon Sep 17 00:00:00 2001 From: Anthony Barone Date: Sun, 3 May 2015 20:33:38 -0400 Subject: Added #panels-footer to components nav in docs --- docs/_includes/nav/components.html | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/_includes') diff --git a/docs/_includes/nav/components.html b/docs/_includes/nav/components.html index 49c8040c5..639066d65 100644 --- a/docs/_includes/nav/components.html +++ b/docs/_includes/nav/components.html @@ -134,6 +134,7 @@