From 4ac888d2f342bfc76d3c8f977834c2c65bd28d8d Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Fri, 24 May 2013 16:10:28 +0400 Subject: [PATCH] jQuery UI progressbar widget --- framework/yii/jui/ProgressBar.php | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 framework/yii/jui/ProgressBar.php diff --git a/framework/yii/jui/ProgressBar.php b/framework/yii/jui/ProgressBar.php new file mode 100644 index 0000000..ab07620 --- /dev/null +++ b/framework/yii/jui/ProgressBar.php @@ -0,0 +1,41 @@ + array( + * 'value' => 75, + * ), + * )); + * ``` + * + * @see http://api.jqueryui.com/progressbar/ + * @author Alexander Kochetov + * @since 2.0 + */ +class ProgressBar extends Widget +{ + /** + * Renders the widget. + */ + public function run() + { + echo Html::beginTag('div', $this->options) . "\n"; + echo Html::endTag('div') . "\n"; + $this->registerWidget('progressbar'); + } +}