Prado\Web\UI\WebControls\TTextBox::setText PHP Method

setText() public method

Sets the text content of the TTextBox control.
public setText ( $value )
    public function setText($value)
    {
        $this->setViewState('Text', TPropertyValue::ensureString($value), '');
        $this->_safeText = null;
    }

Usage Example

Example #1
0
 /**
  * Client-side Text property can only be updated after the OnLoad stage.
  * @param string text content for the textbox
  */
 public function setText($value)
 {
     if (parent::getText() === $value) {
         return;
     }
     parent::setText($value);
     if ($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) {
         $this->getPage()->getCallbackClient()->setValue($this, $value);
     }
 }
All Usage Examples Of Prado\Web\UI\WebControls\TTextBox::setText