3 declare(strict_types=1);
21 $factory = $DIC->ui()->factory();
24 $modal = $factory->modal()->roundtrip(
25 'Showing something off',
27 $factory->messageBox()->info(
'I am something.'),
29 )->withCancelButtonLabel(
30 'Thank you and goodbye' 31 )->withActionButtons([$factory->button()->standard(
'Nothing todo here',
'#')]);
33 $trigger = $factory->button()->standard(
'I will show you something', $modal->getShowSignal());
35 return $renderer->render([$modal, $trigger]);
with_custom_labels()
description: > An example showing how you can set a custom label for the modals cancel-button.