mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00: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';
|
static $plural_name = 'HTML Blocks';
|
||||||
|
|
||||||
public function getFieldConfiguration() {
|
public function getFieldConfiguration() {
|
||||||
|
|
||||||
|
$textAreaField = new TextareaField(
|
||||||
|
$this->getSettingName('Content'),
|
||||||
|
"HTML"
|
||||||
|
);
|
||||||
|
$textAreaField->setRows(4);
|
||||||
|
$textAreaField->setColumns(20);
|
||||||
|
|
||||||
return new FieldList(
|
return new FieldList(
|
||||||
new TextareaField(
|
$textAreaField,
|
||||||
$this->getSettingName('Content'),
|
|
||||||
"HTML", 4, 20, $this->getSetting('Content')
|
|
||||||
),
|
|
||||||
new CheckboxField(
|
new CheckboxField(
|
||||||
$this->getSettingName('HideFromReports'),
|
$this->getSettingName('HideFromReports'),
|
||||||
_t('EditableLiteralField.HIDEFROMREPORT', 'Hide from reports?'),
|
_t('EditableLiteralField.HIDEFROMREPORT', 'Hide from reports?'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user