View¶
- class bootlace.links.View(*, text: ~bootlace.util.Taggable | ~dominate.dom_tag.dom_tag | str | ~collections.abc.Iterable[~bootlace.util.Taggable | ~dominate.dom_tag.dom_tag], a: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.a'>, classes=set(), attributes={}), endpoint: str | ~bootlace.endpoint.Endpoint, enabled: bool = True)[source]¶
Bases:
LinkBaseLink to a Flask view.
Attributes Summary
Whether the link is active, based on the current request endpoint.
The blueprint for the endpoint.
Whether the link is enabled.
The endpoint to link to, for use with Flask's
url_for()The URL to link to, constructed using
url_for().Methods Summary
__tag__()Attributes Documentation
- active¶
Whether the link is active, based on the current request endpoint.
- blueprint¶
The blueprint for the endpoint.
- enabled: bool¶
Whether the link is enabled.
- url¶
The URL to link to, constructed using
url_for().
Methods Documentation
- __tag__() html_tag¶