HTML::Widgets::NavMenu::Iterator::NavMenu - navmenu iterator.


NAME

HTML::Widgets::NavMenu::Iterator::NavMenu - navmenu iterator.


SYNOPSIS

For internal use only.


METHODS =cut

sub _init { my $self = shift;

    $self->SUPER::_init(@_);
    my %args = (@_);
    my $ul_classes = $args{'ul_classes'};
    # Make a fresh copy just to be on the safe side.
    $self->{'ul_classes'} = [ @$ul_classes ];
    return 0;
    }

$self->gen_ul_tag(depth => $depth);

Generate a UL tag of depth $depth.

get_currently_active_text ( $node )

Calculates the highlighted text for the node $node. Normally surrounds it with <b> ... </b> tags.

$self->get_link_tag()

Gets the tag for the link - an item in the menu.

my @tags = $self->get_open_sub_menu_tags()

Gets the tags to open a new sub menu.

$self->get_role()

Retrieves the current role.