JTAppleCalendar icon indicating copy to clipboard operation
JTAppleCalendar copied to clipboard

how to set the first row of the calendar to match the starting date

Open tareq594 opened this issue 7 years ago • 13 comments

Hello , first of all thanks for this amazing library .

I am trying to design a calendar that starts from " the current day" and hide the previous days . however when I hide the the days before the current day , I could not find a way to set the current day to the first raw . this is problematic specially when the starting day is at the end of the month so it will shift down in the bottom .

Regards Tariq

tareq594 avatar Feb 11 '18 18:02 tareq594

can you show me a screenshot/wireframe of what you want the calendar to look like?

patchthecode avatar Feb 11 '18 18:02 patchthecode

screen shot 2018-02-11 at 9 00 34 pm I want the startdate to be in the first raw of the calendar without the first two empty raws . What I did here , I hided the cells with date prior to my intended startdate . however that will result in empty raws before it . I hope it's clear now

tareq594 avatar Feb 11 '18 19:02 tareq594

looks similar to the requirement in this https://github.com/patchthecode/JTAppleCalendar/issues/712 (please scroll down)

ogezue avatar Feb 13 '18 06:02 ogezue

This is currently not possible. The calendar starts at the first of the month, and ends at the end of the month. This was an update from the begining i should have done, but never got the time to do. Marking this as enhancement.

patchthecode avatar Feb 18 '18 23:02 patchthecode

+1 for this enhancement

loydbrahn avatar Mar 16 '18 20:03 loydbrahn

+1 for this enhancement

LuckyRoc avatar Apr 11 '18 06:04 LuckyRoc

+1 for this enhancement (Is this issue being worked on actively or scheduled for later?)

ghost avatar Sep 04 '18 09:09 ghost

It is not currently being worked on yet. It is scheduled for later. Maybe if someone did a pull request, it can be done faster.

patchthecode avatar Sep 04 '18 13:09 patchthecode

+1 for this enhancement (Is this issue being worked on actively or scheduled for later?)

mayqiyue avatar Feb 24 '19 16:02 mayqiyue

scheduled for later, unless someone does that upgrade for me. In the mean time i guess you can use to boundary dates solution if it works for your usecase. Unfortunately, I am unable to work faster on this.

patchthecode avatar Feb 25 '19 06:02 patchthecode

I am now beginning to think about this. There is one thing I am not clear on

screen shot 2018-02-11 at 9 00 34 pm

If you want the calendar to start off with the start date, then for a:

  1. Horizontal Calendar - according to this image, the frame of this calendar will only have 4 rows. Can you describe what will happen If I then scroll to the right to see the next month which has a full 6 rows?

  2. Vertical Calendar - I havent thought of any issues here yet. Focusing on the horizontal firt

patchthecode avatar May 21 '19 16:05 patchthecode

What about my suggestion? https://github.com/patchthecode/JTAppleCalendar/issues/712#issuecomment-364864742

ogezue avatar May 21 '19 16:05 ogezue

@ogezue ok i just re-read yours.

I think i answered since last year march 2018 :) The library is no longer restricted to rows 1, 2, 3, 6 it can now do 4 & 5.

I am not sure if it fits your needs now though. Let me know.

patchthecode avatar May 21 '19 17:05 patchthecode