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

getImageAlign() public method

public getImageAlign ( ) : string
return string the alignment of the image with respective to other elements on the page, defaults to empty.
    public function getImageAlign()
    {
        return $this->getViewState('ImageAlign', '');
    }

Usage Example

Beispiel #1
0
 /**
  * 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);
     }
 }