- COPYRIGHT AND LICENSE
- BUGS AND LIMITATIONS
Prophet::Web::Menu - Handle the API for menu navigation
Sets or returns the string that the menu item will be displayed as.
Gets or sets the parent Prophet::Web::Menu of this item; this defaults to null. This ensures that the reference is weakened.
Gets or sets the sort order of the item, as it will be displayed under the parent. This defaults to adding onto the end.
Get or set the frame or pseudo-target for this link. something like _blank
Gets or set a Jifty::Web::Link object that represents this menu item. If you're looking to do complex ajaxy things with menus, this is likely the option you want.
Creates a new Prophet::Web::Menu object. Possible keys in the PARAMHASH are
active. See the subroutines with the respective name below for each option's use.
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.
Gets or sets if the menu item is marked as active. Setting this cascades to all of the parents of the menu item.
child KEY [, PARAMHASH]
If only a KEY is provided, returns the child with that KEY.
Otherwise, creates or overwrites the child with that key, passing the PARAMHASH to "new" in Jifty::Web::Menu. Additionally, the paramhash's
label defaults to the KEY, and the
sort_order defaults to the pre-existing child's sort order (if a
KEY is being over-written) or the end of the list, if it is a new
Returns the first active child node, or
undef is there is none.
Removes the child with the provided KEY.
Returns the children of this menu item in sorted order; as an array in array context, or as an array reference in scalar context.
Render menubar with YUI menu, suitable for an application's menu. It can support arbitrary levels of submenu.
Return this menu item as a
Jifty::Web::Link, either the one we were initialized with or a new one made from the
If there's no
/url and no
/link, renders just the label.
Gets or sets the CSS class the link should have in addition to the default classes. This is only used if
link isn't specified.
Jesse Vincent <firstname.lastname@example.org>
Chia-Liang Kao <email@example.com>
Christine Spang <firstname.lastname@example.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2009 by Best Practical Solutions.
This is free software, licensed under:
The MIT (X11) License
BUGS AND LIMITATIONS
You can make new bug reports, and view existing ones, through the web interface at https://rt.cpan.org/Public/Dist/Display.html?Name=Prophet.
Alex Vandiver <email@example.com>
Casey West <firstname.lastname@example.org>
Cyril Brulebois <email@example.com>
Florian Ragwitz <firstname.lastname@example.org>
Ioan Rogers <email@example.com>
Jonas Smedegaard <firstname.lastname@example.org>
Kevin Falcone <email@example.com>
Lance Wicks <firstname.lastname@example.org>
Nelson Elhage <email@example.com>
Pedro Melo <firstname.lastname@example.org>
Rob Hoelz <email@example.com>
Ruslan Zakirov <firstname.lastname@example.org>
Shawn M Moore <email@example.com>
Simon Wistow <firstname.lastname@example.org>
Stephane Alnet <email@example.com>
Unknown user <nobody@localhost>
Yanick Champoux <firstname.lastname@example.org>
franck cuny <email@example.com>