Text

class bootlace.nav.elements.Text(text: ~bootlace.util.Taggable | ~dominate.dom_tag.dom_tag | str | ~collections.abc.Iterable[~bootlace.util.Taggable | ~dominate.dom_tag.dom_tag], span: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.span'>, classes={'nav-link'}, attributes={}))[source]

Bases: NavElement

A text element in the nav bar

Attributes Summary

active

Whether the element is active

enabled

Whether the element is enabled

span

text

Methods Summary

__tag__()

element_state(tag)

Apply active and enabled states to the tag.

Attributes Documentation

active

Whether the element is active

enabled
span: Tag
text: Taggable | dom_tag | str | Iterable[Taggable | dom_tag]

Methods Documentation

__tag__() dom_tag[source]
element_state(tag: dom_tag) dom_tag

Apply active and enabled states to the tag.