19 declare(strict_types=1);
43 $ui = $DIC->ui()->factory();
46 $request = $DIC->http()->request();
49 $textarea_input = $ui->input()->field()->textarea(
"Disabled Textarea Input",
"Just a disabled textarea input.")
53 $DIC->ctrl()->setParameterByClass(
54 'ilsystemstyledocumentationgui',
58 $form_action = $DIC->ctrl()->getFormActionByClass(
'ilsystemstyledocumentationgui');
61 $form = $ui->input()->container()->form()->standard($form_action, [$textarea_input]);
64 if ($request->getMethod() ==
"POST" && $request->getQueryParams()[
'example_name'] ==
'disabled') {
65 $form = $form->withRequest($request);
66 $result = $form->getData();
68 $result =
"No result yet.";
73 "<pre>" . print_r($result,
true) .
"</pre><br/>" .
disabled()
description: > Example shows how to create and render a disabled textarea field and attach it to a f...