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

Render empty date columns for clicking in future unreserved dates #182

Closed
kobruleht opened this issue Aug 1, 2015 · 2 comments
Closed

Comments

@kobruleht
Copy link

Demo in http://taitems.github.io/jQuery.Gantt/ shows only 3 days after last bar.

It is not possible to make reservation for month into future by clicking in column which is in month after last date which has value.

There should be parameter like minWidthInDays which specifies minimum width of grid in days. If source value range is smaller, empty day columns should be rendered in end.
Grid shuld have always at least specified number of day columns .
This allows click in those columns to put reservation into future.

Or there should be way to specify dummy to/from dates in value property which forces drawing empty date columns at end.

I fixed this by adding line

element.dateEnd.setDate(element.dateEnd.getDate() + 30);

in end of init as described in
#121
There should be some parameter which allows to implement this, which passes value 30 instead of hard-coding it into js file.

future

@teti14
Copy link

teti14 commented Sep 10, 2015

hi. I've solved adding this code in jquery.fn.gantt.js
//row(250) element.dateEnd = tools.getMaxDate(element);
var dt = new Date();
var month = dt.getMonth()+1;
var day = dt.getDate();
var year = dt.getFullYear()+3;
element.dateEnd = new Date(year,month,day);

@usmonster
Copy link
Collaborator

Hello! Thanks for opening this issue, though this feature is already planned. As you mention, it is partially covered by #121, but I think #143 is really what you are asking for. Please feel free to subscribe to either or both issues to track the progress or add your opinion. In the meantime, I will close this issue as a duplicate.

Thanks again for using the plug-in!

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

3 participants