kartik\helpers\Html::closeButton PHP Method

closeButton() public static method

Example: ~~~ echo Html::closeButton(); echo Html::closeButton(Html::icon('remove-sign'); ~~~
See also: http://getbootstrap.com/css/#helper-classes-close
public static closeButton ( string $label = '×', array $options = [], string $tag = 'button' ) : string
$label string the close icon label. Defaults to `×`.
$options array HTML attributes / options for the close icon button.
$tag string the HTML tag for rendering the close icon. Defaults to `button`.
return string
    public static function closeButton($label = '×', $options = [], $tag = 'button')
    {
        static::addCssClass($options, 'close');
        if ($tag == 'button') {
            $options['type'] = 'button';
        }
        $options['aria-hidden'] = 'true';
        return static::tag($tag, $label, $options);
    }