Example:
~~~
echo Html::bsLabel('Draft');
echo Html::bsLabel('Inactive', 'danger');
echo Html::bsLabel('Active', 'success');
~~~
public static bsLabel ( string $content, string $type = 'default', array $options = [], string $prefix = 'label label-', string $tag = 'span' ) : string | ||
$content | string | the label content |
$type | string | the bootstrap label type. Defaults to 'default'. Should be one of the bootstrap contextual colors: 'default, 'primary', 'success', 'info', 'danger', 'warning'. |
$options | array | HTML attributes / options for the label container |
$prefix | string | the CSS class prefix. Defaults to 'label label-'. |
$tag | string | the label container tag. Defaults to 'span'. |
return | string |