45 parent::initializeArguments();
46 $this->registerTagAttribute(
'autofocus',
'string',
'Specifies that a text area should automatically get focus when the page loads');
47 $this->registerTagAttribute(
'rows',
'int',
'The number of rows of a text area');
48 $this->registerTagAttribute(
'cols',
'int',
'The number of columns of a text area');
49 $this->registerTagAttribute(
'disabled',
'string',
'Specifies that the input element should be disabled when the page loads');
50 $this->registerTagAttribute(
'placeholder',
'string',
'The placeholder of the textarea');
51 $this->registerArgument(
'errorClass',
'string',
'CSS class to set if there are errors for this ViewHelper',
false,
'f3-form-error');
52 $this->registerTagAttribute(
'readonly',
'string',
'The readonly attribute of the textarea',
false);
53 $this->registerArgument(
'required',
'bool',
'Specifies whether the textarea is required',
false,
false);
54 $this->registerUniversalTagAttributes();
64 $required = $this->arguments[
'required'] ??
false;
69 $this->tag->forceClosingTag(
true);
70 $this->tag->addAttribute(
'name', $name);
71 if ($required ===
true) {
72 $this->tag->addAttribute(
'required',
'required');
78 return $this->tag->render();