HTML::Widgets::NavMenu::HeaderRole - A Specialized HTML::Widgets::NavMenu sub-class
Mostly the same as HTML::Widgets::NavMenu except for the ability to specify 'role' => "header" as one of the node attributes.
'role' => "header"
This module is constructed and invoked similarly to HTML::Widgets::NavMenu. The only difference is that it is meaningful to specify "header" as the value of the 'role'.
"header"
'role'
In that case, the link or bolded label will be rendered within its own <h2> header. The HTML will look something like this:
<h2>
</ul> <h2> <a href="../me/" title="About Myself">About Me</a> </h2> <ul>
An example of this use can be found on the Perl Beginners Site ( http://perl-begin.org/ ).
HTML::Widgets::NavMenu for the complete documentation of the super-class.
Shlomi Fish, http://www.shlomifish.org .
To install HTML::Widgets::NavMenu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Widgets::NavMenu
CPAN shell
perl -MCPAN -e shell install HTML::Widgets::NavMenu
For more information on module installation, please visit the detailed CPAN module installation guide.