Prophet

 view release on metacpan or  search on metacpan

lib/Prophet/Web/Menu.pm  view on Meta::CPAN

subroutines with the respective name below for each option's use.

=head2 url

Gets or sets the URL that the menu's link goes to.  If the link provided is not
absolute (does not start with a "/"), then is is treated as relative to it's
parent's url, and made absolute.

=head2 active [BOOLEAN]

Gets or sets if the menu item is marked as active.  Setting this cascades to
all of the parents of the menu item.

=head2 child KEY [, PARAMHASH]

If only a I<KEY> is provided, returns the child with that I<KEY>.

Otherwise, creates or overwrites the child with that key, passing the
I<PARAMHASH> to L<Jifty::Web::Menu/new>.  Additionally, the paramhash's
C<label> defaults to the I<KEY>, and the C<sort_order> defaults to the
pre-existing child's sort order (if a C<KEY> is being over-written) or the end



( run in 0.582 second using v1.01-cache-2.11-cpan-49f99fa48dc )