2

can I add a value label for a Zii progress bar?

$w =intval($model->fixed);
        $this->widget('zii.widgets.jui.CJuiProgressBar', array(
         'value'=> $w ,      
         'htmlOptions'=>array(
                 'style'=>'width:200px;height:20px;',            
         ),
        ));

Regards.

Stan
  • 8,710
  • 2
  • 29
  • 31
Saeed
  • 21
  • 3

1 Answers1

0

Modify like this to put label to your progress bar

    $w =intval($model->fixed);
    $this->widget('zii.widgets.jui.CJuiProgressBar', array(
     'id'=>'jui_progress_bar',
     'value'=> $w ,
     'htmlOptions'=>array(
             'style'=>'width:200px;height:20px;',            
          ),
     'options'=>array(
          'create'=>new CJavaScriptExpression('function(event, ui) {
                    $("jui_progress_bar").text("Your Text goes here");
                }'),
          )
      );
Manquer
  • 7,390
  • 8
  • 42
  • 69