Mojolicious-Plugin-Moai
view release on metacpan or search on metacpan
lib/Mojolicious/Plugin/Moai.pm view on Meta::CPAN
#pod =item * dropdown menus
#pod
#pod =item * forms and other items in the navbar (move the Form plugin from Yancy?)
#pod
#pod =item * switched panels (tabs, accordion, slider)
#pod
#pod =item * alerts (error, warning, info)
#pod
#pod =item * menus (dropdown button, menu bar)
#pod
#pod =item * popups (modal dialogs, tooltips, notifications)
#pod
#pod =back
#pod
#pod =item Add more libraries
#pod
#pod There should be support for...
#pod
#pod =over
#pod
#pod =item * Bootstrap 3
lib/Mojolicious/Plugin/Moai.pm view on Meta::CPAN
=item * dropdown menus
=item * forms and other items in the navbar (move the Form plugin from Yancy?)
=item * switched panels (tabs, accordion, slider)
=item * alerts (error, warning, info)
=item * menus (dropdown button, menu bar)
=item * popups (modal dialogs, tooltips, notifications)
=back
=item Add more libraries
There should be support for...
=over
=item * Bootstrap 3
lib/Mojolicious/Plugin/Moai/resources/bootstrap4/templates/moai/menu/buttons.html.ep view on Meta::CPAN
<ul class="nav nav-pills">
<% for my $item ( @items ) {
my ( $content, $route, $opt ) = $part_item->( $item, 'nav-link' );
# If the second argument is an arrayref, this is a dropdown
# menu...
if ( ref $route->[0] eq 'ARRAY' ) {
$opt->{class} .= ' dropdown-toggle';
$opt->{'data-toggle'} = 'dropdown';
$opt->{role} = 'button';
$opt->{'aria-haspopup'} = 'true';
$opt->{'aria-expanded'} = 'false';
%>
<li class="nav-item dropdown">
%= link_to $content, '#', %$opt
<div class="dropdown-menu">
<%
for my $drop_item ( @{ $route->[0] } ) {
if ( !defined $drop_item ) {
%>
( run in 0.589 second using v1.01-cache-2.11-cpan-364913b4093 )