Minor Setting rows and cols on TextField the non deprecated way

This commit is contained in:
Stig Lindqvist 2012-05-07 17:07:32 +12:00
parent 93d7da417a
commit 2d91f2f456

View File

@ -14,11 +14,16 @@ class EditableLiteralField extends EditableFormField {
static $plural_name = 'HTML Blocks';
public function getFieldConfiguration() {
$textAreaField = new TextareaField(
$this->getSettingName('Content'),
"HTML"
);
$textAreaField->setRows(4);
$textAreaField->setColumns(20);
return new FieldList(
new TextareaField(
$this->getSettingName('Content'),
"HTML", 4, 20, $this->getSetting('Content')
),
$textAreaField,
new CheckboxField(
$this->getSettingName('HideFromReports'),
_t('EditableLiteralField.HIDEFROMREPORT', 'Hide from reports?'),