3 declare(strict_types=1);
    15     $ui = $DIC->ui()->factory();
    16     $renderer = $DIC->ui()->renderer();
    19     $text_input = $ui->input()->field()->text(
"Disabled Input", 
"Just some disabled input")->withDisabled(
true);
    22     $form = $ui->input()->container()->form()->standard(
"#", [$text_input]);
    25     return $renderer->render($form);
 
disabled()
Example show how to create and render a disabled text input field and attach it to a form...