1: <?php
2:
3: declare(strict_types=1);
4:
5: namespace Atk4\Ui\Layout;
6:
7: use Atk4\Ui\Js\JsExpressionable;
8: use Atk4\Ui\Menu;
9: use Atk4\Ui\MenuItem;
10:
11: interface NavigableInterface
12: {
13: /**
14: * Add a group to left menu.
15: *
16: * @param array $seed
17: */
18: public function addMenuGroup($seed): Menu;
19:
20: /**
21: * Add items to left menu.
22: *
23: * Will place item in a group if supply.
24: *
25: * @param string|array $name
26: * @param string|array|JsExpressionable $action
27: * @param Menu $group
28: */
29: public function addMenuItem($name, $action = null, $group = null): MenuItem;
30: }
31: