Calendar
Overview
A month, week or agenda view of records that have a date, with colour by status and click-to-open. Use it for bookings, deadlines, deliveries and staff schedules.
When to use
- Appointments for a salon or clinic
- Delivery dates for orders
- Invoice due dates
- Staff leave and shifts
When not to use
- A week-first schedule with time slots: start from Scheduler (same component, week view by default)
- History views: use Timeline
Quick start
- Add a Calendar and choose the entity in Properties → Data
- Set Date field (Datetime for timed events, Date for all-day) and Title field
- Set Color by field to a Select such as Status or Type
- Add On Row Click → Open Drawer with the record, and On Click → Open Modal “New booking” with date = Event → date
Properties
Heading shown above the calendar. Leave empty for none. Bindable, so it can include dynamic text such as the customer's name.
Example: Open jobs
Message shown when the query returns no records (after filters, search and permissions). Tell people what to do next: “No jobs yet — add one with the button above”.
Default: No events in this period.
Where each record sits on the calendar. Date-only values show as “All day”; Datetime values show their start time. Defaults to the first Datetime or Date field.
The field shown as the main text of each item. Defaults to the entity's display field (usually Name or Title).
Example: name
A Select field whose option colours tint the event chips (e.g. Status: confirmed = green, pending = amber).
The view shown first. Visitors can switch with the Month / Week / Agenda tabs.
Options: month, week, agenda
Default: month
Data binding
An entity query; up to 1000 records load at once, so filter to a sensible range or status. Exposes selectedDate (YYYY-MM-DD) and selectedId as component state, which other components can use (e.g. a List of that day's bookings filtered by Component state → Calendar → selectedDate).
Properties that can use dynamic data: Title, data.
Events
- On row click
- Runs when an event chip is clicked (Event → record, Event → id). Typical: Open Drawer with the booking details.
- On click
- Runs when a day is clicked; Event → date is the day as YYYY-MM-DD. Typical: Open Modal with a booking form whose Date input defaults to Event → date.
Actions
Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.
Other components can read this component's selectedDate, selectedId from the Data Picker → Component state.
Responsive behavior
Below ~560 px the month view shows dots per day and an agenda for the selected day; week view becomes an agenda list.
Permissions
Records are filtered on the server by the current role's rules (for example customers only receive their own records) and hidden fields are removed before anything reaches the browser. Hiding this component does not protect the data; set permissions on the entity.
Accessibility
- Days are buttons that announce the date and number of events
- View tabs and previous/next controls are keyboard reachable; the current period is announced
Examples
Clinic appointments
Source: Appointments where status not equals cancelled Date field: starts_at (Datetime) · Title field: patient_name · Color by field: status View: week On Row Click: Open Drawer → Appointment details, id = Event → id On Click: Open Modal → New appointment, date = Event → date
Common patterns
- A Dropdown of staff bound to a filter to show one person's calendar
- KPI “Appointments today” next to the calendar
Limitations
- Events are points in time; no end time, duration bars or overlaps
- No drag-and-drop rescheduling
- Week start follows the app's locale
Troubleshooting
Fix: Set Date field or add a Date/Datetime field to the entity
Why: Datetime values saved in another time zone
Fix: Keep one business time zone; save dates as YYYY-MM-DD for all-day events