Ease Framework Twitter Bootstrap 4 Support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
582 B

<?php
namespace Ease\TWB4;
/**
* Rounded Bootstrap4's Badge
*/
class PillBadge extends \Ease\Html\Span
{
/**
* Rounded Bootstrap4's Badge
*
* @link http://getbootstrap.com/components/#badges
*
* @param string $type success|info|warning|danger
* @param mixed $content to insert in
* @param array $properties additional
*/
public function __construct($type, $content = null, $properties = [])
{
parent::__construct($content, $properties);
$this->addTagClass('badge badge-pill badge-'.$type);
}
}