public static function display($config = array())
    {
        ob_start();
        ob_implicit_flush(false);
        /** @var Widget $widget */
        $config['class'] = get_called_class();
        $widget          = \Yii::createComponent($config);
        $widget->init();
        $widget->run();
        return ob_get_clean();
    }