19 declare(strict_types=1);
43 $ui = $DIC->ui()->factory();
44 $request = $DIC->http()->request();
48 $textarea_input = $ui->input()->field()->textarea(
"Textarea Input",
"Just a textarea input.");
51 $DIC->ctrl()->setParameterByClass(
52 'ilsystemstyledocumentationgui',
56 $form_action = $DIC->ctrl()->getFormActionByClass(
'ilsystemstyledocumentationgui');
59 $form = $ui->input()->container()->form()->standard($form_action, [$textarea_input]);
62 if ($request->getMethod() ==
"POST" && $request->getQueryParams()[
'example_name'] ==
'base') {
63 $form = $form->withRequest($request);
64 $result = $form->getData();
66 $result =
"No result yet.";
71 "<pre>" . print_r($result,
true) .
"</pre><br/>" .
base()
description: > The example shows how to create and render a basic textarea field and attach it to a ...