Nav¶
- class bootlace.nav.elements.Nav(items: list[~bootlace.nav.core.NavElement] = NOTHING, id: str = NOTHING, style: ~bootlace.nav.core.NavStyle = NavStyle.PLAIN, alignment: ~bootlace.nav.core.NavAlignment = NavAlignment.DEFAULT, ul: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.ul'>, classes={'nav'}, attributes={}), li: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.li'>, classes={'nav-item'}, attributes={}))[source]¶
Bases:
SubGroupA navigation bar
Attributes Summary
Whether the element is active
The alignment of the elments in the nav
Whether the element is enabled
The ID of the nav
The style of the nav
Methods Summary
__tag__()element_state(tag)Attributes Documentation
- active¶
- alignment: NavAlignment¶
The alignment of the elments in the nav
- enabled¶
Whether the element is enabled
- id: str¶
The ID of the nav
- items: list[NavElement]¶
Methods Documentation