Skip to content

components

LogMonitor

LogMonitor(*, max_lines: int = MAX_LINES)

Bases: Persistable

Persisted log display for notifications with timestamps.

Events

Name Description
NEW_LINE a new line was added to the log (argument: line)

ConfirmDialog

ConfirmDialog(
    text: str = "Are you sure?", *, delay: float = 3.0
)

Bases: dialog

A dialog that asks for confirmation with a delayed yes button.

Attributes & Properties

Name Type Description
classes Classes[Self] The classes of the element.
client Client The client this element belongs to.
html_id str The ID of the element in the HTML DOM.
is_deleted bool Whether the element has been deleted.
is_ignoring_events bool Return whether the element is currently ignoring events.
parent_slot Slot | None The parent slot of the element.
props Props[Self] The props of the element.
style Style[Self] The style of the element.
submitted Event An event that is set when the dialog is submitted.

HeaderBar

HeaderBar(
    pages: dict[str, str] | None = None,
    *,
    robot_id: str | None = None,
    estop: EStop | None = None,
    bms: Bms | None = None,
    bms_url: str | None = None,
    teltonika_router: TeltonikaRouter | None = None
)

Navigation header with logo, page links, and status indicators.

StatusBulb

StatusBulb(value: bool = False)

Bases: ValueElement

A circular LED-style indicator that changes color based on value.

Attributes & Properties

Name Type Description
classes Classes[Self] The classes of the element.
client Client The client this element belongs to.
html_id str The ID of the element in the HTML DOM.
is_deleted bool Whether the element has been deleted.
is_ignoring_events bool Return whether the element is currently ignoring events.
parent_slot Slot | None The parent slot of the element.
props Props[Self] The props of the element.
style Style[Self] The style of the element.