- REQUIRED METHODS
- PROVIDED METHODS
- COPYRIGHT AND LICENSE
Yukki::Web::View::Role::Navigation - Common page navigation tools for views
The top and bottom page menus and breadcrumb are typically managed with similar idioms in the various views. This avoid duplicate code in each.
The implementor must provide each of the following:
my @menu_items = $view->standard_menu;
Must return a list of hash references. Each hash reference should provide the following keys:
This gives the short action name associated with this item.
This is the label to give the menu item. If not given the
actionwill be uesd with the first letter capitalized.
This is a numeric value to use for sorting the menu item. If not given, the default used is 20.
$view->page_navigation($ctx->response, $action, \%vars);
This will add navigation items using the menus returned by "standard_menu".
Andrew Sterling Hanenkamp <firstname.lastname@example.org>
This software is copyright (c) 2017 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.