mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
7eaca248e2
commit
2d2ca13e45
@ -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;
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user