ENHANCEMENT: added setRows() and setColumns() to customize the size of the textarea field outside of the controller (from r106118)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112518 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 02:56:36 +00:00
parent 7eaca248e2
commit 2d2ca13e45

View File

@ -93,5 +93,22 @@ class TextareaField extends FormField {
function Type() {
return parent::Type() . ( $this->readonly ? ' readonly' : '' );
}
}
?>
/**
* Set the number of rows in the textarea
*
* @param int
*/
function setRows($rows) {
$this->rows = $rows;
}
/**
* Set the number of columns in the textarea
*
* @return int
*/
function setColumns($cols) {
$this->cols = $cols;
}
}