Firstly this is a definite solution to the problem - it is throwing the calendars, with their specific day arrays into a container table.
Secondly, I don't understand it!!
Well, there are one or two things that are new to me and perhaps if you have a little time you wouldn't mind explaining them to me?
In the sub CreateCal: push ( @days, [ @day ] ); # store the days of each calendarAfter #Embolden headers, the line:
my @color = @{ $days[$calnum] }; # the days to be colored
seems to be a hash of some sort but I'm afraid I don't quite get it. (I do get the fact that you are storing an array of dates and then extracting them, but I don't understand the mechanics).
I'm very impressed at the simplicity of what you have achieved compared to the Heath Robinson approach I had embarked upon - this looks like the real thing.
I have also been trying very hard to get the calendars to fill different rows:If we generate a new table:
then how can I get the calendars to fill across and then down to the next row?# Generate container table my $t = new HTML::ElementTable ( maxrow => 12, maxcol => 3 );
By using
$t->cell( $calnum, $calnum )->push_content( $cals[$calnum] );
the calendars fill diagonally, and I had hoped that by using
that might do the trick, but I am left with a blank screen. In fact everything I have tried pretty much leaves me with a blank screen!!# Populate container table for my $calnum ( 0 .. $#cals ) { my $row = int(my $calnum/4); $t->cell( 0, $calnum )->push_content( $cals[$calnum] ); }
If you have any ideas on the latter and perhaps give an explanation of the former I would be very grateful
Many thanks, though, for your help so far...
In reply to Re: Possible Solution for Generating a container table in HTML::CalendarMonth
by jonnyfolk
in thread Generating a container table in HTML::CalendarMonth
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |