From e0addf5b588a1244f9679becd90999dfcb4c3a94 Mon Sep 17 00:00:00 2001 From: "ITSERVICES\\rb7147" Date: Tue, 25 Apr 2017 11:46:00 -0400 Subject: Policy 1707 commit to LF Change-Id: Ibe6f01d92f9a434c040abb05d5386e89d675ae65 Signed-off-by: ITSERVICES\rb7147 --- .../CSS/bootstrap/docs/_includes/js/carousel.html | 255 +++++++++++++++++++++ 1 file changed, 255 insertions(+) create mode 100644 POLICY-SDK-APP/src/main/webapp/app/policyApp/CSS/bootstrap/docs/_includes/js/carousel.html (limited to 'POLICY-SDK-APP/src/main/webapp/app/policyApp/CSS/bootstrap/docs/_includes/js/carousel.html') diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/CSS/bootstrap/docs/_includes/js/carousel.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/CSS/bootstrap/docs/_includes/js/carousel.html new file mode 100644 index 000000000..7d9d78367 --- /dev/null +++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/CSS/bootstrap/docs/_includes/js/carousel.html @@ -0,0 +1,255 @@ +
+

Carousel carousel.js

+ +

A slideshow component for cycling through elements, like a carousel. Nested carousels are not supported.

+ + +
+ +
+{% highlight html %} + +{% endhighlight %} + + + + + + + +

Optional captions

+

Add captions to your slides easily with the .carousel-caption element within any .item. Place just about any optional HTML within there and it will be automatically aligned and formatted.

+
+ +
+{% highlight html %} +
+ ... + +
+{% endhighlight %} + + + +

Multiple carousels

+

Carousels require the use of an id on the outermost container (the .carousel) for carousel controls to function properly. When adding multiple carousels, or when changing a carousel's id, be sure to update the relevant controls.

+ +

Via data attributes

+

Use data attributes to easily control the position of the carousel. data-slide accepts the keywords prev or next, which alters the slide position relative to its current position. Alternatively, use data-slide-to to pass a raw slide index to the carousel data-slide-to="2", which shifts the slide position to a particular index beginning with 0.

+

The data-ride="carousel" attribute is used to mark a carousel as animating starting at page load. It cannot be used in combination with (redundant and unnecessary) explicit JavaScript initialization of the same carousel.

+ +

Via JavaScript

+

Call carousel manually with:

+{% highlight js %} +$('.carousel').carousel() +{% endhighlight %} + + +

Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-, as in data-interval="".

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
intervalnumber5000The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.
pausestring"hover"Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.
wrapbooleantrueWhether the carousel should cycle continuously or have hard stops.
keyboardbooleantrueWhether the carousel should react to keyboard events.
+
+ + + +

.carousel(options)

+

Initializes the carousel with an optional options object and starts cycling through items.

+{% highlight js %} +$('.carousel').carousel({ + interval: 2000 +}) +{% endhighlight %} + +

.carousel('cycle')

+

Cycles through the carousel items from left to right.

+ +

.carousel('pause')

+

Stops the carousel from cycling through items.

+ + +

.carousel(number)

+

Cycles the carousel to a particular frame (0 based, similar to an array).

+ +

.carousel('prev')

+

Cycles to the previous item.

+ +

.carousel('next')

+

Cycles to the next item.

+ + +

Bootstrap's carousel class exposes two events for hooking into carousel functionality.

+

Both events have the following additional properties:

+
    +
  • direction: The direction in which the carousel is sliding (either "left" or "right").
  • +
  • relatedTarget: The DOM element that is being slid into place as the active item.
  • +
+

All carousel events are fired at the carousel itself (i.e. at the <div class="carousel">).

+
+ + + + + + + + + + + + + + + + + +
Event TypeDescription
slide.bs.carouselThis event fires immediately when the slide instance method is invoked.
slid.bs.carouselThis event is fired when the carousel has completed its slide transition.
+
+{% highlight js %} +$('#myCarousel').on('slide.bs.carousel', function () { + // do something… +}) +{% endhighlight %} +
-- cgit 1.2.3-korg