Prado\Web\UI\WebControls\TLinkButton::getText PHP Method

getText() public method

public getText ( ) : string
return string the text caption of the button
    public function getText()
    {
        return $this->getViewState('Text', '');
    }

Usage Example

Example #1
0
 /**
  * Updates the link text on the client-side if the
  * {@link setEnableUpdate EnableUpdate} property is set to true.
  * @param string caption of the button
  */
 public function setText($value)
 {
     if (parent::getText() === $value) {
         return;
     }
     parent::setText($value);
     if ($this->getActiveControl()->canUpdateClientSide()) {
         $this->getPage()->getCallbackClient()->update($this, $value);
     }
 }