setMaxLength() public method

Sets the maximum number of characters allowed in the text box.
public setMaxLength ( $value )
Example #1
0
 protected function createDefaultControl($container, $column, $record)
 {
     $value = $this->getRecordPropertyValue($column, $record);
     $control = new TTextBox();
     $control->setText($value);
     $control->setCssClass('default-textbox scaffold_input');
     if (($len = $column->getColumnSize()) !== null) {
         $control->setMaxLength($len);
     }
     $this->setNotNullProperty($container, $control, $column, $record);
     return $control;
 }