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

dateTimePicker disabledDays issues #1078

Closed
kuytsce opened this issue Jun 4, 2019 · 2 comments
Closed

dateTimePicker disabledDays issues #1078

kuytsce opened this issue Jun 4, 2019 · 2 comments
Assignees
Labels
bug confirmed Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation.
Milestone

Comments

@kuytsce
Copy link

kuytsce commented Jun 4, 2019

I guess this would come under User Support.

I'm using Bootsfaces for the first time and I've got the dateTimePicker component working however I need to disable weekends and certain holidays so they can't be selected.

I've tried using the week-days-disabled attribute to disable weekends however this isn't working and all days are still available to be selected.

<b:dateTimePicker id="datePicker" value="#{bean.date}" show-time="false" format="DD/MM/YYYY" week-days-disabled="[0,6]" />

In addition I've tried using the disabled-days/enabled-days attributes to disable certain holidays however your documentation advises that the attribute accepts an array of date, moment, string. I can work out what to enter for date and moment but I don't know what string would be required? Can you advise, preferably with an example that would be great. I can't find any examples online.

Thanks

stephanrauh added a commit to TheCoder4eu/BootsFacesWeb that referenced this issue Aug 3, 2019
@stephanrauh
Copy link
Collaborator

It seems we've simply forgotten to implement week-days-disabled. Now it's there.

@stephanrauh
Copy link
Collaborator

The "String" refers to a JavaScript string. Such as disabledDates="'08/03/2019'". I've added an example to the documentation.

stephanrauh added a commit to TheCoder4eu/BootsFacesWeb that referenced this issue Aug 3, 2019
@stephanrauh stephanrauh added bug confirmed Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation. labels Aug 3, 2019
@stephanrauh stephanrauh added this to the v1.5.0 milestone Aug 3, 2019
stephanrauh added a commit that referenced this issue Aug 3, 2019
stephanrauh added a commit that referenced this issue Aug 3, 2019
@TheCoder4eu TheCoder4eu modified the milestones: v1.5.0, v1.4.2 Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed Solved This ticket has been solved. If it's still open, we're waiting for the user's confirmation.
Projects
None yet
Development

No branches or pull requests

3 participants