You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Calendar component will allow users to visualize and interact with time-based data in a familiar calendar interface. This document outlines the technical design and implementation strategy.
Component Properties
Top-Level Properties
title (optional)
Text displayed above calendar
Similar to chart/map components' title implementation
initial_view (optional)
Controls initial calendar display format
Options: "month", "week", "day"
Defaults to "month"
height (optional)
Sets fixed calendar height in pixels
Similar to chart component's height property
Defaults to auto-height
json_url (optional)
Enables dynamic event loading
Points to SQLPage JSON endpoint
Similar to dynamic component's implementation
navigation (optional, boolean)
Enables/disables date navigation controls
Defaults to true
today (optional, boolean)
Shows/hides "Today" button
Defaults to true
Row-Level Properties
title (required)
Event title text
Displayed in calendar cells
start (required)
Event start time
Supports both date and datetime
end (optional)
Event end time
Defaults to start time for single-day events
color (optional)
Event visual styling
Uses SQLPage color system (like chart/timeline components)
url (optional)
Click destination
Similar to list component's link property
description and description_md (optional)
Event details
Shown in tooltip/popup
all_day (optional, boolean)
Indicates full-day events
Affects visual display
Technical Implementation Details
File Structure
Look at these existing files for reference patterns:
sqlpage/templates/chart.handlebars - For component template structure
sqlpage/apexcharts.js - For JavaScript initialization patterns
examples/official-site/sqlpage/migrations/ - For component documentation
SQLPage Calendar Component - Technical Design Document
Overview
The Calendar component will allow users to visualize and interact with time-based data in a familiar calendar interface. This document outlines the technical design and implementation strategy.
Component Properties
Top-Level Properties
title (optional)
initial_view (optional)
height (optional)
json_url (optional)
navigation (optional, boolean)
today (optional, boolean)
Row-Level Properties
title (required)
start (required)
end (optional)
color (optional)
url (optional)
description and description_md (optional)
all_day (optional, boolean)
Technical Implementation Details
File Structure
Look at these existing files for reference patterns:
sqlpage/templates/chart.handlebars
- For component template structuresqlpage/apexcharts.js
- For JavaScript initialization patternsexamples/official-site/sqlpage/migrations/
- For component documentationRequired Changes
examples/official-site/sqlpage/migrations/
XX_calendar.sql
(XX = next number in sequence)sqlpage/templates/
calendar.handlebars
map.handlebars
for structuresqlpage/
calendar.js
apexcharts.js
initialization patternsIntegration Points
Testing Strategy
Documentation
examples/official-site/sqlpage/migrations/XXX-calendar.sql
examples/
The text was updated successfully, but these errors were encountered: