La classe bsCarousel permet d'ajouter un caroussel d'images dans la page web.
public function __construct($id)
Le paramètre $id
identifie l'objet dans la page web.
<?php
$carousel = $document->append(new bsCarousel('myCarousel'));
<div data-ride="carousel" id="myCarousel" class="carousel slide">
<ol class="carousel-indicators"></ol>
<div role="listbox" class="carousel-inner"></div>
<a href="#myCarousel" role="button" data-slide="prev" class="left carousel-control"><span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span><span class="sr-only">Previous</span></a>
<a href="#myCarousel" role="button" data-slide="next" class="right carousel-control"><span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span><span class="sr-only">Next</span></a>
</div>
Voir aussi addPage.