carouselindicators
A carousel indicator list. The specified number of indicators are automatically created. Carousel indicators are automatically added to a <carousel> unless explicitly disabled, so there is rarely any need to use this tag directly. When used within a <carousel> tag, the "target", "slides" and "active" attributes are automatically set.
- Example
- <carouselindicators slides="2" target="mycarousel"/>
- Output
- <div class="carousel-control"> <li data-target="#mycarousel" data-slide-to="0"></li> <li data-target="#mycarousel" data-slide-to="1"></li> </div>
Tag Information | |
---|---|
Tag Class | org.bootstrapjsp.tags.core.carousel.CarouselIndicators |
Body Content | scriptless |
Dynamic Attributes | true |
Attributes
Name | Description | Flags |
---|---|---|
active | The index (1 based) of the currently active slide. Automatically configured if this tag is a child of a <carousel> tag. |
rtexprvalue
|
inline |
rtexprvalue
|
|
slides | The number of slides in the carousel - in other words the number of indicators to render. Automatically configured if this tag is a child of a <carousel> tag. |
rtexprvalue
|
target | The ID of the carousel that these indicators are targeting. Automatically configured if this tag is a child of a <carousel> tag. |
rtexprvalue
|
unstyled |
rtexprvalue
|