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

bool
dynamic

Indicates if this component is active.
An inactive component allows no user interaction.

True

id

str

The identifier that is assigned to the rendered HTML component.

None

properties

dict[str, Any]

Bound to a dictionary that contains additional properties for this element.

None

class_name

str
dynamic

The list of CSS class names that are associated with the generated HTML Element.
These class names are added to the default taipy-navbar class name.

None

hover_text

str
dynamic

The information that is displayed when the user hovers over this element.

None