/** * Client-side Text property can only be updated after the OnLoad stage. * @param string text content for the textbox */ public function setText($value) { parent::setText($value); if ($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) { $this->getPage()->getCallbackClient()->setValue($this, $value); } }
protected function createMultiLineControl($container, $column, $record) { $value = $this->getRecordPropertyValue($column, $record); $control = new TTextBox(); $control->setText($value); $control->setTextMode(TTextBoxMode::MultiLine); $control->setCssClass('multiline-textbox scaffold_input'); $this->setNotNullProperty($container, $control, $column, $record); return $control; }
/** * On callback response, the inner HTMl of the label and the * value of the textbox is updated * @param string the text value of the label */ public function setText($value) { TTextBox::setText($value); if ($this->getActiveControl()->canUpdateClientSide()) { $client = $this->getPage()->getCallbackClient(); $client->update($this->getLabelClientID(), $value); $client->setValue($this, $value); } }