Skip to content

add option timePickerMinutes#2360

Open
yk-eta wants to merge 2 commits intodangrossman:masterfrom
yk-eta:master
Open

add option timePickerMinutes#2360
yk-eta wants to merge 2 commits intodangrossman:masterfrom
yk-eta:master

Conversation

@yk-eta
Copy link
Copy Markdown

@yk-eta yk-eta commented Aug 9, 2024

add option timePickerMinutes to allow not to display minute in time picker

Comment thread daterangepicker.js Outdated
@Wernfried
Copy link
Copy Markdown

I added this feature in my fork: https://github.com/Wernfried/daterangepicker

I created a generic parameter timePickerStepSize. Just set timePickerStepSize to a value greater or equal to Duration.fromObject({hours: 1})

Default: Duration.fromObject({minutes:1})
Set the time picker step size.
Must be a luxon.Duration or number of seconds or a string according to ISO-8601 duration.
Valid values are 1,2,3,4,5,6,10,12,15,20,30 for Duration.fromObject({seconds: ...}) and Duration.fromObject({minutes: ...}) and 1,2,3,4,6,(8,12) for Duration.fromObject({hours: ...}).
Duration must be greater than minSpan and smaller than maxSpan.
For example timePickerStepSize: 600 will disable time picker seconds and time picker minutes are set to step size of 10 Minutes.
Overwrites #timePickerIncrement and #timePickerSeconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants