ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
disabled.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Input\Field\MultiSelect
;
22
33
function
disabled
()
34
{
35
global
$DIC
;
36
$ui =
$DIC
->ui()->factory();
37
$renderer
=
$DIC
->ui()->renderer();
38
39
//define options.
40
$options = array(
41
"1"
=>
"Pick 1"
,
42
"2"
=>
"Pick 2"
,
43
"3"
=>
"Pick 3"
,
44
"4"
=>
"Pick 4"
,
45
);
46
47
$multi = $ui->input()->field()->multiselect(
"Take your picks"
, $options,
"This is the byline text"
)
48
->withValue([
'2'
,
'4'
])
49
->withDisabled(
true
);
50
51
$form = $ui->input()->container()->form()->standard(
'#'
, [
'multi'
=> $multi]);
52
return
$renderer
->render($form);
53
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Input\Field\MultiSelect
Definition:
base.php:21
ILIAS\UI\examples\Input\Field\MultiSelect\disabled
disabled()
Definition:
disabled.php:33
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
Input
Field
MultiSelect
disabled.php
Generated on Sat Oct 18 2025 23:04:40 for ILIAS by
1.9.4 (using
Doxyfile
)