full_calendar_documentation.py 419 B

12345678910111213141516171819
  1. from nicegui import ui
  2. from . import doc
  3. @doc.demo(ui.fullcalendar)
  4. def main_demo() -> None:
  5. options = {
  6. 'initialView': 'dayGridMonth',
  7. 'slotMinTime': '05:00:00',
  8. 'slotMaxTime': '22:00:00',
  9. 'allDaySlot': False,
  10. 'timeZone': 'local',
  11. 'height': 'auto',
  12. 'width': 'auto',
  13. 'events': [],
  14. }
  15. calendar = ui.fullcalendar(options, on_click=ui.notify)