Prado\Web\UI\WebControls\TImage::setAlternateText PHP Method

setAlternateText() public method

Sets the alternative text to be displayed in the TImage when the image is unavailable.
public setAlternateText ( $value )
    public function setAlternateText($value)
    {
        $this->setViewState('AlternateText', $value, '');
    }

Usage Example

Beispiel #1
0
 /**
  * Sets the alternative text to be displayed in the TImage when the image is unavailable.
  * @param string the alternative text
  */
 public function setAlternateText($value)
 {
     if (parent::getAlternateText() === $value) {
         return;
     }
     parent::setAlternateText($value);
     if ($this->getActiveControl()->canUpdateClientSide()) {
         $this->getPage()->getCallbackClient()->setAttribute($this, 'alt', $value);
     }
 }
All Usage Examples Of Prado\Web\UI\WebControls\TImage::setAlternateText