3 declare(strict_types=1);
27 $ui = $DIC->ui()->factory();
30 $request = $DIC->http()->request();
33 $textarea_input = $ui->input()->field()->textarea(
"Disabled Textarea Input",
"Just a disabled textarea input.")
37 $DIC->ctrl()->setParameterByClass(
38 'ilsystemstyledocumentationgui',
42 $form_action = $DIC->ctrl()->getFormActionByClass(
'ilsystemstyledocumentationgui');
45 $form = $ui->input()->container()->form()->standard($form_action, [$textarea_input]);
48 if ($request->getMethod() ==
"POST" && $request->getQueryParams()[
'example_name'] ==
'disabled') {
49 $form = $form->withRequest($request);
50 $result = $form->getData();
52 $result =
"No result yet.";
57 "<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...