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: LinkBase

Link to a Flask view.

Attributes Summary

a

active

Whether the link is active, based on the current request endpoint.

blueprint

The blueprint for the endpoint.

enabled

Whether the link is enabled.

endpoint

The endpoint to link to, for use with Flask's url_for()

text

url

The URL to link to, constructed using url_for().

Methods Summary

__tag__()

Attributes Documentation

a: Tag
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.

endpoint: Endpoint

The endpoint to link to, for use with Flask’s url_for()

text: Taggable | dom_tag | str | Iterable[Taggable | dom_tag]
url

The URL to link to, constructed using url_for().

Methods Documentation

__tag__() html_tag