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

Calendar disable specific dates and/or days such as holidays or weekends #1690

Closed
hjalmers opened this issue Dec 27, 2016 · 1 comment
Closed
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@hjalmers
Copy link

I'm submitting a ...

[x] feature request

What is the motivation / use case for changing the behavior?
In some cases it might not be appropriate to let users select specific dates or days in the calendar, ie. could be weekends or holidays.

Proposed solution
Pass an array with dates to the calendar that shouldn't be selectable and apply a specific class to these dates to enable styling. This would enable users to disable specific holidays.

Pass an array with weekdays that should be disabled, ie. if a user wants to disable weekends they would pass in 0 and 6 (disabling Saturday and Sunday), apply specific class to disabled days to enable styling.

hjalmers added a commit to hjalmers/primeng that referenced this issue Dec 27, 2016
@cagataycivici cagataycivici self-assigned this Mar 27, 2017
@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Mar 27, 2017
@cagataycivici cagataycivici added this to the 4.0.RC2 milestone Mar 27, 2017
@cagataycivici cagataycivici changed the title Calendar: disable specific dates and/or days such as holidays or weekends Calendar disable specific dates and/or days such as holidays or weekends Mar 27, 2017
@stirumala76
Copy link

stirumala76 commented Apr 3, 2017

just wondering how can I update this feature in my current installed primeng project for angular 2 is
it npm install primeng@latest --save ? I am currently using "primeng": "^2.0.5", however I am not seeing this feature works here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

3 participants