Go to the source code of this file.
|
| disabled () |
| Example show how to create and render a disabled textarea field and attach it to a form. More...
|
|
◆ disabled()
Example show how to create and render a disabled textarea field and attach it to a form.
Definition at line 6 of file disabled.php.
References $DIC, and $result.
10 $ui = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
13 $request = $DIC->http()->request();
16 $textarea_input = $ui->input()->field()->textarea(
"Disabled Textarea Input",
"Just a disabled textarea input.")
20 $DIC->ctrl()->setParameterByClass(
21 'ilsystemstyledocumentationgui',
25 $form_action = $DIC->ctrl()->getFormActionByClass(
'ilsystemstyledocumentationgui');
28 $form = $ui->input()->container()->form()->standard($form_action, [$textarea_input]);
31 if ($request->getMethod() ==
"POST" && $request->getQueryParams()[
'example_name'] ==
'disabled') {
32 $form = $form->withRequest($request);
40 "<pre>" . print_r(
$result,
true) .
"</pre><br/>" .
41 $renderer->render($form);