NavBarSearch¶

class bootlace.nav.elements.NavBarSearch(id: str = NOTHING, placeholder: str = 'Search', action: str = '#', method: str = 'GET', button: str | None = None, form: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.form'>, classes={'d-flex'}, attributes={'role': 'search'}), input: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.input_'>, classes={'me-2', 'form-control'}, attributes={'type': 'search'}), button_tag: ~bootlace.util.Tag = Tag(tag=<class 'dominate.tags.button'>, classes={'btn-success', 'btn'}, attributes={'type': 'submit'}))[source]¶

Bases: NavElement

A search bar for the navbar

Attributes Summary

action

active

Whether the element is active

button

button_tag

enabled

Whether the element is enabled

form

id

input

method

placeholder

Methods Summary

__tag__()

element_state(tag)

Apply active and enabled states to the tag.

Attributes Documentation

action: str¶
active¶

Whether the element is active

button: str | None¶
button_tag: Tag¶
enabled¶

Whether the element is enabled

form: Tag¶
id: str¶
input: Tag¶
method: str¶
placeholder: str¶

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: NavBarNav
        • Next: Nav
©2024, Alex Rudy. | Powered by Sphinx 8.1.3 & Alabaster 1.0.0 | Page source