MobileCalendarController

MobileCalendarController

Mobile Events Controller

Touch-optimized event list for viewing gatherings on mobile devices. Extends MobileControllerBase for offline handling and retry logic.

Features:

  • Weekly grouped event list
  • Search and filtering (type, branch, RSVP status)
  • Quick month navigation
  • RSVP with offline queue support
  • Pull-to-refresh support

Constructor

new MobileCalendarController()

Source:

Methods

applyFilters()

Description:
  • Apply current filters

Source:

clearFilters()

Description:
  • Clear all filters

Source:

createBottomSheet()

Description:
  • Create RSVP modal container

Source:

escapeHtml()

Description:
  • Escape HTML entities

Source:

formatTime()

Description:
  • Format time for display

Source:

getWeekStart()

Description:
  • Get the start of the week (Sunday)

Source:

groupEventsByWeek()

Description:
  • Group events by week

Source:

(async) handleAttendanceFormSubmit()

Description:
  • Handle attendance form submission

Source:

(async) handleDeleteAttendance()

Description:
  • Handle delete attendance

Source:

(async) handleRsvpClick()

Description:
  • Handle RSVP button click - online uses modal, offline queues RSVP

Source:

handleSearch()

Description:
  • Handle search input with debounce

Source:

initYearSelector()

Description:
  • Initialize year selector with range

Source:

(async) loadCalendarData()

Description:
  • Load calendar data from server

Source:

onConnect()

Description:
  • Called after base class connect

Source:

onConnectionStateChanged()

Description:
  • Called when connection state changes

Source:

onDisconnect()

Description:
  • Called after base class disconnect

Source:

populateFilters()

Description:
  • Populate filter dropdowns from event data

Source:

(async) queueOfflineRsvp()

Description:
  • Queue an RSVP for sync when back online

Source:

renderActivities()

Description:
  • Render activities list for an event

Source:

renderEventList()

Description:
  • Render the event list grouped by week

Source:

renderWeekEvents()

Description:
  • Render events for a week

Source:

restoreFromUrlParams()

Description:
  • Restore month/year from URL parameters

Source:

setupModalFormHandlers()

Description:
  • Setup form handlers for the attendance modal

Source:

setupPullToRefresh()

Description:
  • Set up pull-to-refresh

Source:

(async) showOfflineRsvpForm()

Description:
  • Use the normal RSVP modal for local visibility choices before saving the queue entry.

Source:

(async) syncPendingRsvps()

Description:
  • Sync pending RSVPs to server

Source:

toggleFilters()

Description:
  • Toggle filter panel visibility

Source:

updateNavigationSelectors()

Description:
  • Update navigation selectors to current values

Source:

(async) updatePendingBanner()

Description:
  • Update the pending RSVPs banner visibility

Source:

updateResultsCount()

Description:
  • Update results count display

Source: