Skip to content

feat: Allow calendars to be initially hidden #295

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Dev-Time
Copy link

@Dev-Time Dev-Time commented Jun 25, 2025

This change introduces an 'initiallyHidden' option for calendars. When set to true, the calendar's events will not be displayed on the card by default, but the calendar will still appear in the legend. Clicking the calendar in the legend will toggle the visibility of its events.

Added initiallyHidden boolean option to calendar configuration in src/editor.js.
Modified setConfig in src/card.js to populate _hideCalendars based on this new option at startup.

closes #292

This change introduces an 'initiallyHidden' option for calendars.
When set to true, the calendar's events will not be displayed on the
card by default, but the calendar will still appear in the legend.
Clicking the calendar in the legend will toggle the visibility of its events.

- Added `initiallyHidden` boolean option to calendar configuration in `src/editor.js`.
- Modified `setConfig` in `src/card.js` to populate `_hideCalendars` based on this new option at startup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Disable calendar on first view
1 participant