full_calendar_documentation.py 373 B

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