l.s.w.i.IFacetMenu(IMenuBase) : interface documentation

Part of lp.services.webapp.interfaces View In Hierarchy

Main facet menu for an object.
Method iterlinks Iterate over the links in this menu.
Attribute defaultlink The name of the default link in this menu. That is, the one that will be selected if no others are selected. It is None if there is no default link.

Inherited from IMenuBase:

Attribute context The object that has this menu.
Attribute request The request the menus is used in.
def iterlinks(request_url=None, selectedfacetname=None):
Iterate over the links in this menu.
Parametersrequest_urlA URI or None. It is used to decide whether a menu link points to the page being requested, in which case it will not be linked.
selectedfacetnameA str. The link with that name will be marked as 'selected'.
defaultlink =
The name of the default link in this menu. That is, the one that will be selected if no others are selected. It is None if there is no default link.
API Documentation for Launchpad, generated by pydoctor at 2019-09-18 00:00:08.