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

Increment hard coded to 5 minutes #117

Open
seeker25 opened this issue Jan 31, 2018 · 5 comments
Open

Increment hard coded to 5 minutes #117

seeker25 opened this issue Jan 31, 2018 · 5 comments

Comments

@seeker25
Copy link

seeker25 commented Jan 31, 2018

Looking at this line:

increment *= mode === 'minute' ? 5 : 1;

as well:

                var cellDate = isYear ? new Date(i, month, 1, hour, minute) :
                  isMonth ? new Date(year, i, 1, hour, minute) : isDay ? new Date(year, month, i, hour, minute) :
                    isHour ? new Date(year, month, day, i) : new Date(year, month, day, hour, i * 5);

Is there a way to set this as a variable? Say 15 minutes instead?

Goes a bit further than this as well. You'd have to recalculate number of the rows and columns.

So depending on the interval set, would need to compute the number of rows and columns needed.

@Tsourdox
Copy link

I would really like this feature as well! Any updates?

@Healyhatman
Copy link

Me too kplztx

@kemikal
Copy link

kemikal commented May 11, 2018

+1

@crewow
Copy link

crewow commented Jan 10, 2019

Looking at this line:

increment *= mode === 'minute' ? 5 : 1;

as well:

                var cellDate = isYear ? new Date(i, month, 1, hour, minute) :
                  isMonth ? new Date(year, i, 1, hour, minute) : isDay ? new Date(year, month, i, hour, minute) :
                    isHour ? new Date(year, month, day, i) : new Date(year, month, day, hour, i * 5);

Is there a way to set this as a variable? Say 15 minutes instead?

Goes a bit further than this as well. You'd have to recalculate number of the rows and columns.

So depending on the interval set, would need to compute the number of rows and columns needed.

here is its vrariable
https://github.com/domialex/Semantic-UI-Calendar
minuteStep: 5, // how many minutes to separate an hour, can be 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30.

@lubber-de
Copy link

lubber-de commented Jan 22, 2019

As the calendar has been merged into Fomantic-UI we added the option minTimeGap by fomantic/Fomantic-UI#198 and made this feature happen 🙂
https://fomantic-ui.com/modules/calendar.html#/settings

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

No branches or pull requests

6 participants