Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi-day and height options to Calendar Card #36201

Open
wants to merge 4 commits into
base: next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions source/_lovelace/calendar.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ initial_view:
required: false
description: "The view that will show first when the card is loaded onto the page. Options are `dayGridMonth`, `dayGridDay`, and `listWeek`."
type: string
multi_day:
required: false
description: "Whether to display multi-day events in blocks spanning the calendar, the way they are shown in the Calendar panel on the sidebar. Defaults to false."
type: boolean
height:
required: false
description: "The height at which to render the card, specified as a number in pixels (e.g., 400 for 400px). This is recommended when using the `multi_day` option. Defaults to 400."
type: number
entities:
required: true
description: A list of calendar entities that will be displayed in the card.
Expand All @@ -55,6 +63,8 @@ Example:

```yaml
type: calendar
multi_day: true
height: 900
entities:
- calendar.calendar_1
- calendar.calendar_2
Expand Down