9 $ui = $DIC->ui()->factory();
10 $renderer = $DIC->ui()->renderer();
14 $number_input = $ui->input()->field()
15 ->text(
"number",
"Some numeric input");
18 $DIC->ctrl()->setParameterByClass(
19 'ilsystemstyledocumentationgui',
23 $form_action = $DIC->ctrl()->getFormActionByClass(
'ilsystemstyledocumentationgui');
27 $form = $ui->input()->container()->form()->standard(
29 [
'input1' => $number_input->withLabel(
"Input 1")
30 ,
'input2' => $number_input->withLabel(
"Input 2")
36 &&
$request->getQueryParams()[
'example_name'] ==
'keys') {
45 "<pre>" . print_r(
$result,
true) .
"</pre><br/>" .
46 $renderer->render(
$form);
foreach($paths as $path) $request
with_keys()
Example showing how keys can be used when attaching input fields to a form.
if(isset($_POST['submit'])) $form