Mojolicious::Plugin::SemanticUIPageNavigator - Mojolicious::Plugin::SemanticUIPageNavigator
version 0.0.3
# Mojolicious::Lite plugin 'SemanticUIPageNavigator'; # Mojolicious $self->plugin( 'SemanticUIPageNavigator');
Mojolicious::Plugin::SemanticUIPageNavigator generates a page navigation bar based on SemanticUI framework, just like 首页 上一页 1 2 ... 11 12 13 14 15 ... 85 86 下一页 末页
Mojolicious::Plugin::SemanticUIPageNavigator - Page Navigator plugin for Mojolicious, which is dependent on SemanticUI front-end framework. This module is derived from Mojolicious::Plugin::PageNavigator and Mojolicious::Plugin::BootstrapPagination
%= page_navigator( $current_page, $total_pages, $opts );
Options is a optional ref hash.
%= page_navigator( $current_page, $total_pages,{ round => 2, outer => 2, param => 'page', });
Number of pages around the current page. Default: 3.
Number of outer window pages (first and last pages). Default: 2.
Name of param for query url. Default: 'p'
Mojolicious::Plugin::BootstrapPagination ande Mojolicious::Plugin::PageNavigator
Copyright (C) Yan Xueqing
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
yanxq <yanxueqing621@163.com>
This software is copyright (c) 2015 by BerryGenomics.
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 Mojolicious::Plugin::SemanticUIPageNavigator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::SemanticUIPageNavigator
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::SemanticUIPageNavigator
For more information on module installation, please visit the detailed CPAN module installation guide.