Moonshine::Bootstrap::Component::DropdownUl
$self->dropdown_ul( class => 'extra-css', alignment => 'right', separators => [4], headers => [ { index => 4, data => 'Title', } ] items => [ { heading => 1, data => 'Title', } { link => '#', data => 'Action', }, { link => '#', data => 'Another', }, { link => '#', data => 'Something else here', }, { separator => 1 }, { link => '#', data => 'Separated link', } ], );
defaults to dropdown-menu
Required
Arrayref that gets used to build linked_li's
Add a divider to separate series of links in a dropdown menu
<ul class="dropdown-menu" aria-labelledby="dropdownMenuDivider"> ... <li role="separator" class="divider"></li> ... </ul>
Change alignment of dropdown menu
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel"> ... </ul>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li role="separator" class="divider"></li> <li><a href="#">Separated link</a></li> </ul>
To install Moonshine::Bootstrap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Moonshine::Bootstrap
CPAN shell
perl -MCPAN -e shell install Moonshine::Bootstrap
For more information on module installation, please visit the detailed CPAN module installation guide.