Prado\Web\UI\WebControls\THyperLink::getTarget PHP Метод

getTarget() публичный Метод

public getTarget ( ) : string
Результат string the target window or frame to display the Web page content linked to when the THyperLink component is clicked.
    public function getTarget()
    {
        return $this->getViewState('Target', '');
    }

Usage Example

Пример #1
0
 /**
  * Sets the target window or frame to display the Web page content linked to when the THyperLink component is clicked.
  * @param string the target window, valid values include '_blank', '_parent', '_self', '_top' and empty string.
  */
 public function setTarget($value)
 {
     if (parent::getTarget() === $value) {
         return;
     }
     parent::setTarget($value);
     if ($this->getActiveControl()->canUpdateClientSide()) {
         $this->getPage()->getCallbackClient()->setAttribute($this, 'target', $value);
     }
 }