l.s.w.i.IFacetLink(ILink) : interface documentation

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

A link in a facet menu.

It has a 'selected' attribute that is set by the menus infrastructure, and indicates whether the link is the selected facet.

Attribute selected A boolean value saying whether this link is the selected facet menu item. Defaults to False.

Inherited from ILink:

Attribute name The name of this link in Python data structures.
Attribute url The full url this link points to. Set by the menus infrastructure. None before it is set.
Attribute path The path portion of the URL.
Attribute linked A boolean value saying whether this link should appear as a clickable link in the UI. The general rule is that a link to the current page should not be shown linked. Defaults to True.
Attribute enabled Boolean to say whether this link is enabled. Can be read and set.
Attribute escapedtext Text string, escaped as necessary.
Attribute icon_url The full URL for this link's associated icon, if it has one.
Method render Return a HTML representation of the link.

Inherited from ILinkData (via ILink):

Attribute target The place this link should link to. This may be a path relative to the context of the menu this link appears in, or an absolute path, or an absolute URL.
Attribute text The text of this link, as appears underlined on a page.
Attribute summary The summary text of this link, as appears as a tooltip on the link.
Attribute icon The name of the icon to use.
Attribute site The name of the site this link is to, or None for the current site.
Attribute menu The INavigationMenu associated with the page this link points to.
Attribute sort_key The sort key to use when rendering it with a group of links.
Attribute hidden Boolean to say whether this link is hidden. This is separate from being enabled and is used to support links which need to be enabled but not viewable in the rendered HTML. The link may be changed to visible by JavaScript or some other means.
selected =
A boolean value saying whether this link is the selected facet menu item. Defaults to False.
API Documentation for Launchpad, generated by pydoctor at 2019-11-21 00:00:04.