ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
with_clear_button.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Dropzone\File\Wrapper
;
22
34
function
with_clear_button
()
35
{
36
global
$DIC
;
37
38
$factory =
$DIC
->ui()->factory();
39
$renderer
=
$DIC
->ui()->renderer();
40
$request =
$DIC
->http()->request();
41
42
$submit_flag =
'dropzone_wrapper_with_clear_button'
;
43
$post_url =
"{$request->getUri()}&$submit_flag"
;
44
45
$dropzone = $factory
46
->dropzone()->file()->wrapper(
47
'Upload your files here'
,
48
$post_url,
49
$factory->messageBox()->info(
'Drag and drop files onto me!'
),
50
$factory->input()->field()->file(
51
new
\
ilUIAsyncDemoFileUploadHandlerGUI
(),
52
'Your files'
53
)
54
);
55
56
$dropzone = $dropzone->withActionButtons([
57
$factory->button()->standard(
'Clear files!'
,
'#'
)->withOnClick($dropzone->getClearSignal())
58
]);
59
60
return
$renderer
->render($dropzone);
61
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ilUIAsyncDemoFileUploadHandlerGUI
@ilCtrl_isCalledBy ilUIAsyncDemoFileUploadHandlerGUI: ilUIPluginRouterGUI
Definition:
class.ilUIAsyncDemoFileUploadHandlerGUI.php:26
ILIAS\UI\examples\Dropzone\File\Wrapper
Definition:
base.php:21
ILIAS\UI\examples\Dropzone\File\Wrapper\with_clear_button
with_clear_button()
Definition:
with_clear_button.php:34
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
Dropzone
File
Wrapper
with_clear_button.php
Generated on Sat Oct 18 2025 23:04:40 for ILIAS by
1.9.4 (using
Doxyfile
)