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] Add option disabledDates similar to disabledDaysOfWeek in #199 #200

Closed
lubber-de opened this issue Oct 24, 2018 · 0 comments
Closed
Labels
lang/javascript Anything involving JavaScript state/has-docs A issue/PR which requires documentation changes and has the corresponding PR open in the docs repo type/feat Any feature requests or improvements
Milestone

Comments

@lubber-de
Copy link
Member

lubber-de commented Oct 24, 2018

Feature Request

Description

Add an option disabledDates to the calendar. This should hold an array of Date Objects. If the calendar view contains any of the dates the appropriate cell is disabled.
This is very similar to #199

In addition, if an Array Element is an object or Array Element itself, it can also contain additional Information, why that specific date is disabled and can show this as a popup when hovering over the cell

Example

disabledDates: [{
    date: new Date(2018,9,24),
    title: 'Company Vacation',
    message: 'Office is closed, please book later'
},{
    date: new Date(2018,11,31),
    message: 'Happy new year!'
},
new Date(2019,4,11),
new Date(2021,10,3)
]

Mockup

image

@lubber-de lubber-de added type/feat Any feature requests or improvements lang/javascript Anything involving JavaScript labels Oct 24, 2018
@lubber-de lubber-de added this to the 2.6.4 milestone Nov 5, 2018
@lubber-de lubber-de added the state/has-docs A issue/PR which requires documentation changes and has the corresponding PR open in the docs repo label Nov 5, 2018
@y0hami y0hami closed this as completed in 3f7bc5d Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript state/has-docs A issue/PR which requires documentation changes and has the corresponding PR open in the docs repo type/feat Any feature requests or improvements
Projects
None yet
Development

No branches or pull requests

1 participant