Generates a calendar grid with lots of options. See parameter usage below. Requires [date_firstdayofweek], [lp_date_leapyear], and [lp_date_monthlastday]. The sample usage includes CSS to demonstrate one way to style the resulting HTML and generate a full-size 2-week calendar along with a 1-month mini-calendar.
Parameters
-id
string, optional
An HTML element ID to keep multiple grids on the same page separate.
-startdate
date, optional
The date from which to calculate the grid.
-numweeks
integer, optional
Number of weeks to display. Defaults to end of current month.
-firstday
string, optional
'Sunday' or 'Monday' to start the week.
-dayformat
string, optional
A valid Lasso date format for day names ('%w', '%A', or '%a').
-daylink
string, optional
String representing the link where individual day numbers in the grid should point. Replaces %d with each day number.
-showweekends
boolean, optional
Boolean for whether to show weekends. Defaults to true.
-showheader
boolean, optional
Boolean for whether to show the current month/year at the top of the grid. Defaults to true.
-events
array, optional
A pair array of events to display in the grid. See sample usage for the specific format.
-target
string, optional
The target window (i.e., "_blank") to use for links.
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.
09/05/2007, Jason Huck Bug Fix
Corrected an issue introduced by the new .hasEvents class where the tag would error if no events were passed to it. Thanks to Jolle Carlestam for discovering this!
08/02/2007, Jason Huck Added .hasEvents class.
Table cells which contain events now include a "hasEvents" class, to make it easier to style them differently via CSS or attach different behavior via JavaScript.
05/15/2007, Hoby Van Hoose v7 version?
Is there any way this could be made for Lasso 7 too?
12/04/2006, Jason Huck Added -target param.
Added an optional param, -target, to specify the target for links within the calendar, i.e., "_blank", "_top", etc.
08/19/2006, Jason Huck Bug Fixes
Added fixes for compatibility with older versions of LP8, some DST related issues, and specific conditions which would case the calculation for number of weeks to be inaccurate. Thanks to Randy Phillips for helping identify and resolve these issues!
Bug Fix
Corrected an issue introduced by the new .hasEvents class where the tag would error if no events were passed to it. Thanks to Jolle Carlestam for discovering this!