3 declare(strict_types=1);
22 $f = $DIC->ui()->factory();
26 'default_option' =>
'Default Ordering',
27 'latest' =>
'Most Recent Ordering',
28 'oldest' =>
'Oldest Ordering' 32 $s =
$f->viewControl()->sortation($options,
'oldest')
33 ->withTargetURL($DIC->http()->request()->getRequestTarget(),
'sortation');
35 $item =
$f->item()->standard(
"See the Viewcontrol in a toolbar")
36 ->withDescription(
"When space is limited, the label will be omitted.");
38 $f->panel()->standard(
"Small space ", [$item])
39 ->withViewControls([$s])
small()
description: > This can be used, when space is very scarce and the label cannot be displayed ...