TbHtml::animatedProgressBar PHP Method

animatedProgressBar() public static method

Generates an animated progress bar.
public static animatedProgressBar ( integer $width, array $htmlOptions = [] ) : string
$width integer the progress in percent.
$htmlOptions array additional HTML attributes.
return string the generated progress bar.
    public static function animatedProgressBar($width = 0, $htmlOptions = array())
    {
        $htmlOptions['animated'] = true;
        return self::stripedProgressBar($width, $htmlOptions);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Add the update dialog to current page.
  */
 public function run()
 {
     $this->widget('bootstrap.widgets.TbModal', array('id' => 'myModal', 'header' => 'Modal Heading', 'content' => TbHtml::animatedProgressBar(99)));
     // Publish extension assets
     $assets = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('ext.modaldlg') . '/assets');
     // Register extension assets
     $cs = Yii::app()->getClientScript();
     $cs->registerScriptFile($assets . '/EModalDlg.js', CClientScript::POS_END);
     // Open update dialog the clicking target elements
     $cs->registerScript('eupdatedialog', "\n          jQuery( '{$this->target}' ).on( 'click', updateDialogOpen );", CClientScript::POS_END);
 }
All Usage Examples Of TbHtml::animatedProgressBar
TbHtml