ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_custom_labels.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
35 {
36  global $DIC;
37  $factory = $DIC->ui()->factory();
38  $renderer = $DIC->ui()->renderer();
39 
40  $modal = $factory->modal()->interruptive(
41  'Interrupting something',
42  'Am I interrupting you?',
43  '#'
44  )->withActionButtonLabel(
45  'Yeah you do!'
46  )->withCancelButtonLabel(
47  'Nah, not really'
48  );
49 
50  $trigger = $factory->button()->standard('I will interrupt you', $modal->getShowSignal());
51 
52  return $renderer->render([$modal, $trigger]);
53 }
$renderer
with_custom_labels()
description: > An example showing how you can set a custom label for the modals action- and cancel-b...
global $DIC
Definition: shib_login.php:22