Link¶
Bases:
NavElementA link in the nav bar, either for a view or a literal URL
Attributes Summary
Whether the link is active.
Whether the link is enabled.
The ID of the element
The link to display, either a URL or a view
The URL for the link.
Methods Summary
__tag__()element_state(tag)with_url(url, text, **kwargs)Create a link with a URL.
with_view(endpoint, text, **kwargs)Create a link with a view.
Attributes Documentation
Whether the link is active.
Whether the link is enabled.
The ID of the element
The link to display, either a URL or a view
The URL for the link.
Methods Documentation
Create a link with a URL.
Create a link with a view.