3 namespace TYPO3\CMS\Fluid\ViewHelpers\Form;
62 parent::initializeArguments();
64 'disabled',
'string',
'Specifies that the input element should be disabled when the page loads'
67 'errorClass',
'string',
'CSS class to set if there are errors for this view helper',
false,
'f3-form-error'
69 $this->
overrideArgument(
'value',
'string',
'Value of input tag. Required for radio buttons',
true);
80 public function render($checked = null)
82 $this->tag->addAttribute(
'type',
'radio');
84 $nameAttribute = $this->
getName();
87 $propertyValue = null;
91 if ($checked === null && $propertyValue === null) {
96 if ($propertyValue !== null) {
99 $checked = $propertyValue == $valueAttribute;
103 $this->tag->addAttribute(
'name', $nameAttribute);
104 $this->tag->addAttribute(
'value', $valueAttribute);
105 if ($checked ===
true) {
106 $this->tag->addAttribute(
'checked',
'checked');
111 return $this->tag->render();