TbHtml::carouselPrevLink PHP Method

    public static function carouselPrevLink($label, $url = '#', $htmlOptions = array())
    {
        self::addCssClass('carousel-control left', $htmlOptions);
        $htmlOptions['data-slide'] = 'prev';
        return self::link($label, $url, $htmlOptions);
    }

Usage Example

Exemplo n.º 1
0
 public function testCarouselPrevLink()
 {
     $I = $this->codeGuy;
     $html = TbHtml::carouselPrevLink('Previous', '#', array('class' => 'link'));
     $a = $I->createNode($html, 'a.carousel-control.left');
     $I->seeNodeCssClass($a, 'link');
     $I->seeNodeAttributes($a, array('href' => '#', 'data-slide' => 'prev'));
     $I->seeNodeText($a, 'Previous');
 }
TbHtml