19 declare(strict_types=1);
38 $f = $DIC->ui()->factory();
45 'default_option' =>
'Default',
46 'latest' =>
'Most Recent',
51 $select_option =
'default_option';
57 $modal =
$f->modal()->lightbox(
$f->modal()->lightboxTextPage(
'Note: This is just used to show case, how 58 this control can be used,to change an other components content.',
"Sortation has changed: " . $options[$select_option]));
59 $s =
$f->viewControl()->sortation($options, $select_option)
60 ->withTargetURL($DIC->http()->request()->getRequestTarget(),
'sortation')
61 ->withOnSort($modal->getShowSignal());
async()
description: > Async example show-casing how this control can be used, without reloading the page ...