NavBarCollapse¶
- class bootlace.nav.elements.NavBarCollapse(items: list[~bootlace.nav.core.NavElement] = NOTHING, id: str = NOTHING, button: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.button'>, classes={'navbar-toggler'}, attributes={'type': 'button'}), icon: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.span'>, classes={'navbar-toggler-icon'}, attributes={}), container: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.div'>, classes={'navbar-collapse', 'collapse'}, attributes={}))[source]¶
Bases:
SubGroupA collection of nav elements that can be collapsed
Attributes Summary
Whether the element is active
Whether the element is enabled
Methods Summary
__tag__()element_state(tag)Attributes Documentation
- active¶
- enabled¶
Whether the element is enabled
- id: str¶
- items: list[NavElement]¶
Methods Documentation