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

firstDay as a view-specific option #7671

Open
2 tasks done
tflorac opened this issue May 5, 2024 · 2 comments
Open
2 tasks done

firstDay as a view-specific option #7671

tflorac opened this issue May 5, 2024 · 2 comments
Labels
Discussing View API Custom views, view-specific options, view triggers

Comments

@tflorac
Copy link

tflorac commented May 5, 2024

Checklist

  • I've already searched through existing tickets
  • Other people will find this feature useful

Is this feature for a specific connector (React/Angular/etc)?

No connector in particular

Feature Description

Hi,

I need to create a custom "timeGrid" view (in addition to default timeGrid view), with a duration of 7 days but using a start day which is different from the default (weeks in France are starting on monday, and I need to display this custom view from wednesday to tuesday).
I tried to set "firstDay = 3" in my custom view definition, but it doesn't seems to be supported...

Best regards,
Thierry

@acerix
Copy link
Member

acerix commented May 22, 2024

I tested in the debug template and can see firstDay doesn't work as a view specific setting currently:

https://codepen.io/acerix/pen/LYoZZoO?editors=001

For now, you could change firstDay using setOption when changing the view.

@acerix acerix changed the title Custom view with different start day firstDay as a view-specific option May 22, 2024
@acerix acerix added Discussing View API Custom views, view-specific options, view triggers labels May 22, 2024
@tflorac
Copy link
Author

tflorac commented May 23, 2024

@acerix : thanks for your reply!
As you say "for now", is there any plan to implement this feature in a near future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussing View API Custom views, view-specific options, view triggers
Projects
None yet
Development

No branches or pull requests

2 participants