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

A collection of nav elements that can be collapsed

Attributes Summary

active

Whether the element is active

button

container

enabled

Whether the element is enabled

icon

id

items

Methods Summary

__tag__()

element_state(tag)

Apply active and enabled states to the tag.

Attributes Documentation

active¶
button: Tag¶
container: Tag¶
enabled¶

Whether the element is enabled

icon: Tag¶
id: str¶
items: list[NavElement]¶

Methods Documentation

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

Apply active and enabled states to the tag.

Bootlace

Navigation

Contents:

  • Getting Started
  • API Reference
    • Breadcrumbs
    • Forms
    • Bootstrap Icons
    • Images
    • Links
    • Navigation
    • Layout, sizing and colors
    • Tables
    • Tools and Utilities

Related Topics

  • Documentation overview
    • API Reference
      • Navigation
        • Previous: Brand
        • Next: NavBarNav
©2024, Alex Rudy. | Powered by Sphinx 8.1.3 & Alabaster 1.0.0 | Page source