19 declare(strict_types=1);
38 $f = $DIC->ui()->factory();
42 'default_option' =>
'Default Ordering',
43 'latest' =>
'Most Recent Ordering',
44 'oldest' =>
'Oldest Ordering' 48 $s =
$f->viewControl()->sortation($options,
'oldest')
49 ->withTargetURL($DIC->http()->request()->getRequestTarget(),
'sortation');
51 $item =
$f->item()->standard(
"See the Viewcontrol in a toolbar")
52 ->withDescription(
"When space is limited, the label will be omitted.");
54 $f->panel()->standard(
"Small space ", [$item])
55 ->withViewControls([$s])
small()
description: > This can be used, when space is very scarce and the label cannot be displayed ...