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

setImageAlign() public method

Possible values include: absbottom, absmiddle, baseline, bottom, left, middle, right, texttop, and top. If an empty string is passed in, imagealign attribute will not be rendered.
public setImageAlign ( $value )
    public function setImageAlign($value)
    {
        $this->setViewState('ImageAlign', $value, '');
    }

Usage Example

コード例 #1
0
ファイル: TActiveImage.php プロジェクト: pradosoft/prado
 /**
  * Sets the alignment of the image with respective to other elements on the page.
  * Possible values include: absbottom, absmiddle, baseline, bottom, left,
  * middle, right, texttop, and top. If an empty string is passed in,
  * imagealign attribute will not be rendered.
  * @param string the alignment of the image
  */
 public function setImageAlign($value)
 {
     if (parent::getImageAlign() === $value) {
         return;
     }
     parent::setImageAlign($value);
     if ($this->getActiveControl()->canUpdateClientSide()) {
         $this->getPage()->getCallbackClient()->setAttribute($this, 'align', $value);
     }
 }
All Usage Examples Of Prado\Web\UI\WebControls\TImage::setImageAlign