Prado\Web\UI\WebControls\TRatingList::setCaption PHP Method

setCaption() public method

public setCaption ( $value ) : TRatingListStyle
return TRatingListStyle current rating style
    public function setCaption($value)
    {
        $this->getCaptionControl()->setText($value);
    }

Usage Example

Beispiel #1
0
 /**
  * @param string caption text
  */
 public function setCaption($value)
 {
     if (parent::getCaption() === $value) {
         return;
     }
     parent::setCaption($value);
     // if it's an active control, this should not be needed.
     $this->callClientFunction('setCaption', $value);
 }