2026-02-21 18:35:20 -06:00

14 lines
541 B
Python

from nicegui import ui
from typing import Callable, cast
def calendar_view(on_select: Callable[[str], None]) -> None:
with ui.card().tight().classes("bg-gray-800 text-white"):
with ui.row().classes("w-full items-center px-4"):
_ = ui.label("Journal Calendar").classes("text-lg font-bold")
with ui.row().classes("w-full items-center px-4"):
# Calendar view
_ = ui.date(
on_change=lambda e: on_select(cast(str, e.value))
).classes("bg-gray-800 text-white")