19 declare(strict_types=1);
37 $factory = $DIC->ui()->factory();
40 $modal = $factory->modal()->roundtrip(
41 'Showing something off',
43 $factory->messageBox()->info(
'I am something.'),
45 )->withCancelButtonLabel(
46 'Thank you and goodbye' 47 )->withActionButtons([$factory->button()->standard(
'Nothing todo here',
'#')]);
49 $trigger = $factory->button()->standard(
'I will show you something', $modal->getShowSignal());
51 return $renderer->render([$modal, $trigger]);
with_custom_labels()
description: > An example showing how you can set a custom label for the modals cancel-button.