* @copyright Copyright © Christoffer Niska 2011- * @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @package bootstrap.widgets * @since 0.9.10 */ /** * Bootstrap progress bar widget. * @see http://twitter.github.com/bootstrap/components.html#progress */ class TbProgress extends CWidget { // Progress bar types. const TYPE_INFO = 'info'; const TYPE_SUCCESS = 'success'; const TYPE_WARNING = 'warning'; const TYPE_DANGER = 'danger'; /** * @var string the bar type. Valid values are 'info', 'success', and 'danger'. */ public $type; /** * @var boolean indicates whether the bar is striped. */ public $striped = false; /** * @var boolean indicates whether the bar is animated. */ public $animated = false; /** * @var integer the amount of progress in percent. */ public $percent = 0; /** * @var array the HTML attributes for the widget container. */ public $htmlOptions = array(); /** * @var string div content */ public $content; /** * @var array $stacked set to an array of progress bar values to display stacked progress bars *
* 'stacked'=>array( * array('type' => 'info|success|warning|danger', 'percent'=>'30', 'htmlOptions'=>array('class'=>'custom')), * array('type' => 'info|success|warning|danger', 'percent'=>'30'), * ) ** @since 9/21/12 8:14 PM antonio ramirez