-
Notifications
You must be signed in to change notification settings - Fork 159
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, #Request. Can we customize as per we want ? #263
Comments
couple of things that might help: If you post a https://jsfiddle.net/ then people can see what you have done and add to it easily.
|
Hi @iangozer , On your kind request, Here I am sharing the Codepen link. I tried in Codepen 1st solution but didn't worked. I don't think the 2nd solution just as CSS will work. I want (Mon-Sun) words inside of each cell dynamically w.r.t each dates. As per first screenshot eg. ( 11->Mon ) within the each cell. Please let mw know if its clear to you. . |
You are hiding them with For the Days, you could use JS or CSS (would be way harder) to add the day labels to the nth children of the tr. showOtherMonths helps you with this as it makes sure the first and last week has 7 days. |
Yes, Removing css worked. Is it possible to display dates on today onwards ? i.e October month begins from todays date October 11? No past dates as per 1st screenshot? May I have any demo for below? I did not understand it completely.
and for this point also
|
In short: what you have now is one month running horizontally, what you need is the whole calendar in one line running horizontally. So you can just keep scrolling. To just remove past dates, you would probably have to us JS to add an extra class to past dates to hide them. What you're trying to do is not just change the look of the calendar, you are going to need to change the html layout and the functions of the JS. |
@iangozer I working on removing disabled dated from the datepicker. As per this code added by me. I am expecting to check if the td cells has no class Update: Also clicking to next month and prev month . It shows original dateicker.it resets the structure. What is the way to prevent the reset structure? You can refer same codpen link |
It is removing them all because you are removing them all The structure is reset because when your script is ran (page render) the next and previous dates do not exist. They are generated when you click the button. You could catch that same trigger and run your code again. In honesty you either need to go deeper and edit how the jquery datepicker is rendered (similar to how this addon does) or start from scratch. https://stackoverflow.com/questions/6061626/find-next-30-days-javascript |
I am customizing this date-picker as per the requirement. Most of it I have achieved it. If you give me direction, It will be great.
(Expected )
In above Image is displaying horizontal dates and days (Mon-Sun) inside of each cell. Only current date to be visible from left to right under a fixed div with scrollable from left to right and vice versa.
(Current - Work In Progress)
I have achieved making it horizontal.
I want the following things to be done. I want confirmation whether it is possible or not and How can we make it?
Making it continuous dates. i.e. no empty cells of current month date by default towards left side.
(Mon-Sun) inside of each cell dynamically w.r.t each dates.
Date scrollable inside the parent div . as of now it is static.
The text was updated successfully, but these errors were encountered: