3 declare(strict_types=1);
21 $ui = $DIC->ui()->factory();
25 $text_input = $ui->input()->field()->text(
"Text Input",
"Enter some text here.");
26 $multi_select = $ui->input()->field()->multiselect(
33 "Choose one or more options" 36 $inner_section = $ui->input()->field()->section(
37 [$text_input, $multi_select],
39 "This is the innermost section." 40 )->withRequired(
true);
43 $dropdown = $ui->input()->field()->select(
50 "Select a single choice" 53 $middle_section = $ui->input()->field()->section(
54 [$dropdown, $inner_section],
56 "This section contains the inner section and a dropdown." 60 $number_input = $ui->input()->field()->numeric(
"Numeric Input",
"Enter a number.");
61 $outer_section = $ui->input()->field()->section(
62 [$number_input, $middle_section],
64 "This is the top-level section containing all other sections." 68 $form = $ui->input()->container()->form()->standard(
"#", [$outer_section]);