10 $ui = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
14 $multi_select_input = $ui->input()->field()->tag(
16 [
'Interesting',
'Boring',
'Animating',
'Repetitious'],
18 )->withValue([
"Interesting"]);
21 $form = $ui->input()->container()->form()->standard(
"#", [$multi_select_input]);
24 return $renderer->render(
$form);
base_with_value()
Example show how to create and render a basic tag input field and attach it to a form.
if(isset($_POST['submit'])) $form