Bases:
NavigationItemAn item that contains a link to a destination and a title.
Returns the URL to the destination.
Bases:
NavigationItemAn item usually expressed by a single HTML tag.
- Parameters:
title – The text inside the tag.
attribs – Attributes on the item.
Bases:
LinkApplication-internal link.
The
endpoint,*argsand**kwargsare passed on tourl_for()to get the link.- Parameters:
text – The text for the link.
endpoint – The name of the view.
kwargs – Extra keyword arguments for
url_for()
By default, query arguments are ignored.”””
Return url for this item.
- Returns:
A string with a link.
Return True it view is active.
Bases:
NavigationItemSeparator.
A seperator inside the main navigational menu or a Subgroup. Not all renderers render these (or sometimes only inside Subgroups).
Bases:
NavigationItemNested substructure.
Usually used to express a submenu.
- Parameters:
title – The title to display (i.e. when using dropdown-menus, this text will be on the button).
items – Any number of
NavigationIteminstances that make up the navigation element.
Return True if any element is currently active.
Bases:
NavigationItemLabel text.
Not a
<label>text, but a text label nonetheless. Precise representation is up to the renderer, but most likely something like<span>,<div>or similar.
Bases:
SubgroupTop level navbar.
Bases:
RendererA very basic HTML5 renderer.
Renders a navigational structure using
<nav>and<ul>tags that can be styled using modern CSS.- Parameters:
kwargs – Additional attributes to pass on to the root
<nav>-tag.
Returns arefs matching url.
Returns navbar classes.
Returns arefs.
Returns subgroup divs.
Returns separator hrs.
Returns nav-label spans.
Bases:
RendererA very basic Bootstrap 5 renderer.
Renders a navigational structure using
<nav>and<ul>tags that can be styled using modern CSS.- Parameters:
kwargs – Additional attributes to pass on to the root
<nav>-tag.
Returns arefs matching url.
Returns navbar classes.
Returns arefs.
Returns subgroup divs.
Returns separator hrs.
Returns nav-label spans.