TbHtml::well PHP Method

well() public static method

Generates a well element.
public static well ( string $content, array $htmlOptions = [] ) : string
$content string the well content.
$htmlOptions array additional HTML attributes.
return string the generated well.
    public static function well($content, $htmlOptions = array())
    {
        self::addCssClass('well', $htmlOptions);
        $size = TbArray::popValue('size', $htmlOptions);
        if (!empty($size)) {
            self::addCssClass('well-' . $size, $htmlOptions);
        }
        return self::tag('div', $htmlOptions, $content);
    }

Usage Example

Exemplo n.º 1
0
 public function testWell()
 {
     $I = $this->codeGuy;
     $html = TbHtml::well('Well text', array('class' => 'div', 'size' => TbHtml::WELL_SIZE_LARGE));
     $well = $I->createNode($html, 'div.well');
     $I->seeNodeCssClass($well, 'well-large');
     $I->seeNodeText($well, 'Well text');
 }
All Usage Examples Of TbHtml::well
TbHtml