9 $ui = $DIC->ui()->factory();
10 $renderer = $DIC->ui()->renderer();
14 $checkbox_input = $ui->input()->field()->checkbox(
"Checkbox",
"Check or not.")
15 ->withValue(
'checked');
18 $DIC->ctrl()->setParameterByClass(
19 'ilsystemstyledocumentationgui',
23 $form_action = $DIC->ctrl()->getFormActionByClass(
'ilsystemstyledocumentationgui');
24 $form = $ui->input()->container()->form()->standard($form_action, [ $checkbox_input]);
29 &&
$request->getQueryParams()[
'example_name'] ==
'base_checkbox') {
38 "<pre>" . print_r(
$result,
true) .
"</pre><br/>" .
39 $renderer->render(
$form);
foreach($paths as $path) $request
if(isset($_POST['submit'])) $form