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

#177 - Rename Entry.customProperties to extendedProps in JSON #195

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

Conversation

eberleant
Copy link

Sorry if I should have asked first whether there's a reason for naming it customProperties, but it seemed like a quick thing and no harm done if the PR is rejected. All this does is rename customProperties to extendedProps, which is what FC expects for non-standard fields (https://fullcalendar.io/docs/event-object).

I ran into a similar issue to what was mentioned in #177 where I wasn't able to order calendar entries by a custom property, even though FC docs say it is possible (https://fullcalendar.io/docs/eventOrder):

This setting accepts a few different arguments:

  • a name of an Event Object property, like "title". This can be the name of a non-standard field.

It might be because the custom property is getting nested an extra level (extendedProps -> customProperties -> property). FC is probably moving customProperties into the extendedProps hash:

Any non-standard properites are moved into the extendedProps hash during event parsing.

If this isn't acceptable, I may have time to modify this to enable setting an eventOrder function (which was also mentioned on #177 as a possible solution), but this seemed like the easiest solution.

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.

1 participant