Skip to content

navbar class

A navigation bar control.

Methods

__init__()

__init__(
    lov=None,
    active=True,
    id=None,
    properties=None,
    class_name=None,
    hover_text=None,
) -> None

Create a new navbar element.

Parameters:

Name Type Description Default
lov dict[str, Any]

The list of pages. The keys should be:

  • page id (start with "/")
  • or full URL
The values are labels. See the section on List of Values for more details.

None
active dynamic(bool)

Indicates if this element is active.
If False, the element is disabled, and user interaction is not allowed.

True
id str

The identifier assigned to the rendered HTML component.
This can be used in callbacks or to target the element for styling.

None
properties dict[str, Any]

A dictionary of additional properties that can be set to the element.

None
class_name dynamic(str)

A space-separated list of CSS class names to be applied to the generated HTML element.
These classes are added to the default taipy-navbar class.

None
hover_text dynamic(str)

The text that is displayed when the user hovers over the element.

None