Prev | Next | mainResponder Verbs > mainResponder.calendar > draw |
mainResponder.calendar.draw
Syntax |
mainResponder.calendar.draw (adrcalendar, urlprefix, colwidth, rowheight, tableborder, bgcolor, monthYearTemplate, dayNameTemplate, dayTemplate, curdate, urldelimiter)
|
Params |
adrcalendar is the address of a calendar in the database. Default: nil. urlprefix is a string which is used in constructing the URLs that each day points to. Default: "". colwidth is the width, in pixels, of a calendar column. Default: 32. rowheight is the height, in pixels, of a calendar row. Default: 22. tableborder is the border attribute for the <table> to be generated. Default: 0. bgcolor is the background color for each cell of the <table>. If no background color is desired set this to nil. Default: nil. monthYearTemplate is the string of text that will enclose the month and year in the calendar display. The month and year will replace the three asterisks. Default: "<font size=\"+2" face="helvetica,arial" color="black"><b><center>***</center></b></font>". dayNameTemplate is the string of text that will enclose each day name in the rendered table. Default: "<font size=\"-1" color="gray"><center>****</center></font>". dayTemplate is the string of text that will enclose each day number. Default: "<font size=\"+0" color="black"><center><b>****</b></center></font>". curdate is a date which determines which month will be displayed and which day will be highlighted in the display by making it <b>bold</b>. Default: clock.now (). urldelimiter is a string which is used as the day-month-year delimiter in the constructed links. Default: "/" firstDayOfWeek is an optional number between 1 and 7 (inclusive) that determines which day of week will be displayed in the first column of the calendar. Default: 1 (Sunday). adrMonthNamesList is the address of a list of month names. Default: nil, meaning the kernel should call date.monthToString instead of trying to access the list. adrAbbrevDayOfWeekNamesList is the address of a list of abbreviated names of week days. Default: nil, meaning the kernel should call date.dayOfWeekToString instead of trying to access the list. cssPrefix is a string specifying a prefix for class attributes that will be added to several elements of the calendar HTML. Default: nil, meaning not class attributes will be added.
|
Action |
Generates a HTML table representing a month which is part of a mainResponder calendar structure.
|
Returns |
A string, the HTML table representing the given month.
|
Notes |
Detailed information about mainResponder's calendar format is available at http://frontier.userland.com/stories/storyReader$256 The firstDayOfWeek, adrMonthNamesList, and adrAbbrevDayOfWeekNamesList parameters were added in Frontier 6.2b7. The cssPrefix parameter was added in Frontier 6.2b15.
|
See Also |
mainResponder.calendar.getMostRecentDay
|
Prev | Next | mainResponder Verbs > mainResponder.calendar > draw |