10 $ui = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
19 $textarea_input = $ui->input()->field()->textarea(
"Textarea Input",
"Just a textarea input.")->withMinLimit($min_limit)->withMaxLimit($max_limit);
22 $ctrl->setParameterByClass(
23 'ilsystemstyledocumentationgui',
24 'example_name_limited',
27 $form_action = $DIC->ctrl()->getFormActionByClass(
'ilsystemstyledocumentationgui');
28 $form = $ui->input()->container()->form()->standard($form_action, [$textarea_input]);
32 &&
$request->getQueryParams()[
'example_name_limited'] ==
"textarea_limited") {
41 "<pre>" . print_r(
$result,
true) .
"</pre><br/>" .
42 $renderer->render(
$form);
foreach($paths as $path) $request
with_limits()
This example shows how to create and render a basic textarea field with minimum and maximum number of...
if(isset($_POST['submit'])) $form