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:
NavElementA search bar for the navbar
Attributes Summary
Whether the element is active
Whether the element is enabled
Methods Summary
__tag__()element_state(tag)Attributes Documentation
- action: str¶
- active¶
Whether the element is active
- button: str | None¶
- enabled¶
Whether the element is enabled
- id: str¶
- method: str¶
- placeholder: str¶
Methods Documentation