mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Minor Setting rows and cols on TextField the non deprecated way
This commit is contained in:
parent
93d7da417a
commit
2d91f2f456
@ -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?'),
|
||||
|
Loading…
Reference in New Issue
Block a user