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

A navigation bar

Attributes Summary

active

Whether the element is active

alignment

The alignment of the elments in the nav

enabled

Whether the element is enabled

id

The ID of the nav

items

li

style

The style of the nav

ul

Methods Summary

__tag__()

element_state(tag)

Apply active and enabled states to the 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]¶
li: Tag¶
style: NavStyle¶

The style of the nav

ul: Tag¶

Methods Documentation

__tag__() → html_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: NavBarSearch
        • Next: Dropdown
©2024, Alex Rudy. | Powered by Sphinx 8.1.3 & Alabaster 1.0.0 | Page source