Calendars demos
Every demo has a standalone page with its preview, source and notes.
44 demos
Calendars
- Formats, locales and time zones
Pattern and Intl display formats, extra input formats for typing and paste, German strings through localeText, a Date value in Asia/Tokyo, seconds with a 12-hour clock, a New York DST gap and a calendar week rule.
- Calendar with week numbers and today button
An inline Calendar with single selection, ISO week-number row headers, the today button and the view and focused-date callbacks.
- Multiple dates, bounds and outside days
selectionMode="multiple" with a controlled array of dates, min and max bounds, Monday as the first day of the week, narrow weekday headers and visible outside days.
- Disabled days, custom cells, month picker and calendar systems
isDateDisabled for weekends and holidays, renderDay and getDayProps for marked days, a month picker through granularity, and the Buddhist and Islamic (Umm al-Qura) calendars with RTL.
- Range calendar with two months
RangeCalendar with two visible months, hover and focus preview, minDays and maxDays, a disabled day that blocks the range, and the getRangeDays helper.
DatePicker
- DatePicker
A date field with a popup calendar, bounds, disabled weekends, a month picker and the ISO value it reports.
- DatePicker as a Data Grid editor
Date and date-time columns that edit with the public DatePicker through datePickerEditor, with min, max, first day of week, week numbers, disabled weekends and a time window passed as column editorProps.
- Date and time
DatePicker granularity="minute"with a 15-minute time list inside office hours and a time zone.
Fields
- Segmented date fields
DateField in the locale's segment order and digits, a pattern format with extra paste formats, strict bounds with an error message, and a date-time field in a fixed time zone.
- Segmented time fields
TimeField on the locale's 12-hour or 24-hour clock, an hourCycle override with seconds, and min, max and isTimeDisabled marking invalid times.
DateRangePicker
- DateRangePicker
Two months side by side, presets, a 2 to 14 day span, the day count and Apply / Cancel.
- Range options and paste
A custom separator that also splits pasted text, onRangeSelect before Apply, getRangeDays, a month range picker, strict quarter bounds and weekends and holidays that block or allow a range.
TimePicker
- TimePicker
A time list every 30 minutes inside a window with a disabled lunch hour, custom options, and a windowed list of all 1,440 minutes.
Common behavior
- Pickers in a form
Pickers post ISO values, take part in required and range validation, and restore their default values on reset.
- Field states, popup control and events
Disabled, read-only, placeholder, pick-only and open-on-focus pickers; a controlled popup that can veto opening; ref open, close, focus and blur; focus, view and value events; placeholderValue seeds; RTL.
- Controlled form validation
Check-in and check-out pickers bound to external form state with a cross-field rule, invalid and errorMessage, onBlur touch tracking, onInvalid from native constraint validation and ref.focus() on the first error.
- Server rendering, color scheme and timing
Pickers that server-render without the host locale or zone, a calendar that marks today after hydration, presets evaluated on open, a light and dark color scheme switch and input-to-paint timings for keys and popups.
Scheduler
- RecurrenceEditor
A controlled recurrence rule editor that emits an RRULE string, with the next occurrences expanded in Europe/Berlin.
- Recurrence options, rules and DST
A RecurrenceEditor that starts on Weekly with French labels, until-date bounds and a long date format, RTL, rule parsing with error results for unsupported parts, exceptions and occurrences that keep 09:30 across the Berlin DST change.
- Scheduler
A week calendar in Europe/Berlin with a recurring standup, overlapping events, an all-day offsite and a blocked lunch; create, edit and delete events.
- Scheduler timeline and resources
Rooms and their people as timeline rows with resource colors and work hours, plus Timeline Year, Year, Agenda and Month Agenda views.
- Views, navigation and work hours
Day, week, work week, a custom 3-day view and a read-only month with per-view options, controlled view and date, a cancellable navigation, min and max, visible and work hours, time scale, week numbers, header items and the date range text.
- Time zones, languages and calendars
Events stored with their own IANA zones shown in a zone you pick, a zone list in the editor, the time zone helper functions, German strings through localeText, and Arabic with the Islamic calendar right to left.
- Event layout and more indicators
A busy week with a collapsible, scrollable all-day row, a night shift across midnight in the all-day row or the time slots, a minimum drawn height, a lane limit with +N more and its popover or day navigation, and auto row height.
- Large schedules and virtual scrolling
A Timeline Month of 1,000 people and 10,000 events that renders only the visible rows, a remote source that reads the rendered people only, scrollToResource under virtualization, a week of 1,000 events and an agenda that appends days as it scrolls.
- Remote events
A data source read per visible range with latency and abort, writes that apply at once and revert when the server rejects them, onDataLoad and onError, a custom loading indicator, setLoading, reloadEvents and the event query methods.
- Editing, popups and validation
Events with your own property names mapped through eventFields, validated subject and room fields with a default room, the quick info popups and the editor dialog, add, edit and delete permissions, overlap prevention, a blocked window, a locked event, read-only mode, inline editing, click events and the CRUD methods.
- Recurring series and edit scopes
A daily standup with a skipped day and a moved occurrence, the "this event / following / all events" prompt, a scope chosen in onBeforeSave without the prompt, recurrence validation, and getOccurrences, getDeletedOccurrences and getOccurrencesInRange.
- Templates and render hooks
Event content per view, event and cell classes and data attributes, date and cell header templates, a header indent, a date range and toolbar wrapper, custom quick info sections and a custom editor dialog with a RecurrenceEditor bound to the form.
- Drag, resize and drop
Events that move and resize in 15-minute steps with cancellable start, drop and resize events, several selected events dragged together, backlog items dropped onto slots, events dragged out to a remove area and between two Schedulers, and touch swipe navigation.
- Selection, keyboard, clipboard and menus
Cell range selection kept in one day column, event selection with Ctrl / Cmd and Shift, a roving-tabindex grid with remapped navigation shortcuts, clipboard copy, cut and paste, a context menu on cells and events, and event tooltips with one suppressed.
- Resource grouping options
Rooms and the people in them as grouped columns, dates above resources, every person under every room, shared events, custom resource headers and tooltips, people added and removed through the prop, per-person work days, a timeline work week with week, date and hour header rows, and a six-month year view.
- Export, import and print
XLSX export with chosen fields and headers, CSV with one row per occurrence and escaped formulas, an iCalendar file with RRULE and EXDATE, iCalendar import from text or a file, and printing the rendered week.
- Adaptive layout and theming
A clinic schedule that switches to the compact layout below 700 px of its own width with a view menu and one doctor at a time, resource colors mixed against the theme seeds, and events in the server-rendered HTML.
- Gantt editing and undo
A website relaunch plan edited in grid cells, in a task dialog with a custom Owner tab and by dragging taskbars, their ends, progress and connector points, with add, delete, indent, milestones, dependency methods, undo and redo, the toolbar, read-only mode and chart events.
- Gantt scheduling and dependencies
A warehouse fit-out on mapped fields with finish-to-start, start-to-start and finish-to-finish links with lags, the critical path and total float, auto and manual task modes, a constraint, an unscheduled task, the conflict dialog, project dates, durations, WBS codes and serial numbers.
- Gantt calendars and working time
Office hours with a lunch break and a short Friday, Christmas and New Year holidays, shaded weekends, a night-shift and a seven-day calendar per task, a time zone switch, an hour-based duration and work, units and task types.
- Gantt timeline and zoom
Hour to year timeline modes and custom month-over-fortnight tiers with a cell template, unit width and Monday week start, zoom in and out, zoom to fit, an infinite timeline, scroll to a date or task, event markers, the splitter and panes, and a pattern date format.
- Gantt baselines, labels and templates
A conference plan with planned baselines and a baseline template, owner and progress labels, an indicator, taskbar, baseline and connector tooltips, custom taskbar, parent and milestone templates, per-task taskbar props, row and taskbar heights and root class and style.
- Gantt resources and split tasks
People assigned with units, the resource view with an Unassigned row, over-allocated ranges, overlapping bars stacked in lanes, multi-taskbar rows, a task split into segments with split and merge, and taskbar drags that reassign people.
- Gantt task pane features
The Gantt task pane with the Data Grid's sorting, filtering, search, multi-row selection, column menu, reorder, resize, a pinned ID column, a column chooser with a hidden column, a cell template and row props, grid lines and hover, tree expansion, a switchable tree column, row drag and an empty view.
- Gantt remote data
Tasks from a controlled data source with skeleton rows while the first read is slow, writes that apply or are rejected and reverted, a local array that is replaced through the data prop and whose wave loads its children on expand, onViewChange and the loading spinner.
- Large Gantt projects
A deterministic 5,000-task project with chained dependencies, rows and timeline cells virtualized in both panes, server-rendered initial rows, a timed critical path toggle, a reschedule of every successor and a scroll to the last task.
- Gantt export, keyboard and languages
Excel, CSV and vector PDF export through lazily loaded writers, print, the default context menu, the keyboard model and labelled taskbars, German strings, Arabic right to left, the adaptive one-pane layout and the task lookup methods.