Repository navigation
Add customization to calendar widget - #26
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updating the calendar widget to add additional builder customization features. Features added are below, with descriptions.
Define date-on-load
This allows the builder to set the date that the calendar will load to. When this field is set, the calendar will automatically jump to that specific date. When the field is not set (blank) the calendar will instead load starting at the current date.
Define initial view
The builder can now define the initial view that the calendar will load with, so it doesn't have to load to month view by default. Instead, the view can be set to load to many different views from the fullcalendar.io library, including a couple of custom "3 day" views.
Define optional user views
Instead of being restricted to dayGridMonth, timeGridWeek, and timeGridDay, the builder can now choose from any set of grid, time, and list views. The user can switch between the views using the buttons in the top right of the window.
Set initial filter state
The calendar comes with a filter capability, allowing the calendar view to filter the datasource, which can be used for features like "Only show features on the map within the current calendar extent" and vice-versa through map filtering actions. Previously, this would have to be user-toggled, but there is now an option in the customization to set the calendar to start filtering data as soon as it's loaded. By default, this is set to false, to maintain backwards compatibility.