NavBar¶
- class bootlace.nav.elements.NavBar(id: str = NOTHING, items: list[~bootlace.nav.core.NavElement] = NOTHING, expand: ~bootlace.size.SizeClass | None = SizeClass.LARGE, color: ~bootlace.style.ColorClass | None = ColorClass.TERTIARY, fluid: bool = True, nav: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.nav'>, classes={'navbar'}, attributes={}), container: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.div'>, classes={'container'}, attributes={}))[source]¶
Bases:
NavElementA navigation bar, typically at the top of the page
This is usually the primary navigation for a site.
Attributes Summary
Whether the element is active
The color of the navbar, if using a bootstrap color class
Whether the element is enabled
The size of the navbar, if any, used to select when it should expand or collapse
Whether the navbar should be fluid (e.g. full width).
The ID of the navbar
The elements in the navbar
Methods Summary
__tag__()element_state(tag)Attributes Documentation
- active¶
Whether the element is active
- color: ColorClass | None¶
The color of the navbar, if using a bootstrap color class
- enabled¶
Whether the element is enabled
- expand: SizeClass | None¶
The size of the navbar, if any, used to select when it should expand or collapse
- fluid: bool¶
Whether the navbar should be fluid (e.g. full width)
- id: str¶
The ID of the navbar
- items: list[NavElement]¶
The elements in the navbar
Methods Documentation