protected static function close($tag, $label, $htmlOptions = array())
    {
        self::addCssClass('close', $htmlOptions);
        $dismiss = TbArray::popValue('dismiss', $htmlOptions);
        if (!empty($dismiss)) {
            $htmlOptions['data-dismiss'] = $dismiss;
        }
        $htmlOptions['type'] = 'button';
        return self::tag($tag, $htmlOptions, $label);
    }
protected static function close($tag, $label, $htmlOptions = array())
    {
        self::addCssClass('close', $htmlOptions);
        $dismiss = TbArray::popValue('dismiss', $htmlOptions);
        if (!empty($dismiss)) {
            $htmlOptions['data-dismiss'] = $dismiss;
        }
        $htmlOptions['type'] = 'button';
        return self::tag($tag, $htmlOptions, $label);
    }
protected static function close ( $ tag , $ label , $ htmlOptions = array ( ) ) { self :: addCssClass ( 'close' , $ htmlOptions ) ; $ dismiss = TbArray :: popValue ( 'dismiss' , $ htmlOptions ) ; if ( ! empty ( $ dismiss ) ) { $ htmlOptions [ 'data-dismiss' ] = $ dismiss ; } $ htmlOptions [ 'type' ] = 'button' ; return self :: tag ( $ tag , $ htmlOptions , $ label ) ; }
Generates a close element.
@param string $tag the tag name.
@param string $label the element label text.
@param array $htmlOptions additional HTML attributes.
@return string the generated element.
Generates a close element .