ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
base_with_value.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Input\Field\Tag
;
22
38
function
base_with_value
()
39
{
40
//Step 0: Declare dependencies
41
global
$DIC
;
42
$ui =
$DIC
->ui()->factory();
43
$renderer
=
$DIC
->ui()->renderer();
44
45
//Step 1: Define the tag input field
46
$tag_input = $ui->input()->field()->tag(
47
"Basic TagInput"
,
48
[
'Interesting'
,
'Boring'
,
'Animating'
,
'Repetitious'
],
49
"Just some tags"
50
)->withValue([
"Interesting"
]);
51
52
//Step 2, define form and form actions
53
$form = $ui->input()->container()->form()->standard(
"#"
, [$tag_input]);
54
55
//Return the rendered form
56
return
$renderer
->render($form);
57
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Input\Field\Tag
Definition:
base.php:21
ILIAS\UI\examples\Input\Field\Tag\base_with_value
base_with_value()
Definition:
base_with_value.php:38
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
Input
Field
Tag
base_with_value.php
Generated on Sat Oct 18 2025 23:04:40 for ILIAS by
1.9.4 (using
Doxyfile
)