Yukki::Web::View::Role::Navigation - Common page navigation tools for views
version 0.991_006
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 action will be uesd with the first letter capitalized.
action
This is a numeric value to use for sorting the menu item. If not given, the default used is 20.
This is URI to link to with this menu item. It may contains String::Errf-style interpolations. The variables passed to "page_navigation" will fill in here.
$view->page_navigation($ctx->response, $action, \%vars);
This will add navigation items using the menus returned by "standard_menu".
Andrew Sterling Hanenkamp <hanenkamp@cpan.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.
To install Yukki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yukki
CPAN shell
perl -MCPAN -e shell install Yukki
For more information on module installation, please visit the detailed CPAN module installation guide.