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

Question. Is it possible to set a hours range #63

Closed
zygisjas opened this issue Jun 6, 2019 · 3 comments
Closed

Question. Is it possible to set a hours range #63

zygisjas opened this issue Jun 6, 2019 · 3 comments
Labels
💡 feature request Feature requests ✅ released Already released

Comments

@zygisjas
Copy link

zygisjas commented Jun 6, 2019

Is it possible to set an available hours range, for example from 9 to 18 hours only?

@robertpro
Copy link

you can add two inputs, the first for the start time, and another one for the end time

@Themitchell
Copy link

as i understand it perhaps @zygisjas is referring to the same issue as this #65

@phoenixwong
Copy link
Owner

Sorry for the long wait. The latest version v0.2.0 [#66] release support for hour-range and hide-disabled-hours. Please give it a try.

If you want to set hours enabled from 9 to 18:

<!-- 24-Hour Format -->
<vue-timepicker :hour-range="[[9, 18]]"></vue-timepicker>

<!-- 24-Hour Format + Hide Disabled Hour Ranges -->
<vue-timepicker :hour-range="[[9, 18]]" hide-disabled-hours></vue-timepicker>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 feature request Feature requests ✅ released Already released
Projects
None yet
Development

No branches or pull requests

4 participants