<basedatepickerweek>
An abstract class representing a week for use with basedatepicker

JavaScript: lz.basedatepickerweek
extends <view> » <node> » lz.Eventable »

Basedatepickerweek is an abstract class representing a week for use with the basedatepicker. See also <basedatepicker> and <basedatepickerday>

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
dayclass expression any classroot.dayclass read/write
  Name of the day class instance to use.

Methods

focusOnDay()
basedatepickerweek.focusOnDay(d);
Set the focus on a day.
Parameter Name Type Description
d   The day of the week to focus on. 0 for Sunday, 6 for Saturday.

getFirstDayInMonth()
basedatepickerweek.getFirstDayInMonth();
Returns the day in this week that is the first day of the month.
Returns Type Description
  number The day of the week that is the first day of the month. If the first day of the month is not in this week, -1 is returned. 0 for Sunday, 6 for Saturday.

getLastDayInMonth()
basedatepickerweek.getLastDayInMonth();
Returns the day in this week that is the last day of the month.
Returns Type Description
  number The day of the week that is the last day of the month. If the last day of the month is not in this week, -1 is returned. 0 for Sunday, 6 for Saturday.

init()
basedatepickerweek.init();

isFirstDayInMonth()
basedatepickerweek.isFirstDayInMonth(d);
Answers the question: Is the given day the first day of the month?
Parameter Name Type Description
d   The day of this week to check to see if it is the first day of the month. 0 is Sunday, 6 is Saturday.
Returns Type Description
  boolean True if the given day is the first day of the month, otherwise false.

isFirstWeek()
basedatepickerweek.isFirstWeek();
Answers the question: Is this the first week of the month?
Returns Type Description
  boolean True if this is the first week of the month, otherwise false.

isLastDayInMonth()
basedatepickerweek.isLastDayInMonth(d);
Answers the question: Is the given day of the week the last day of the month?
Parameter Name Type Description
d   The day of the week to check to see if it is the last day of the month. 0 for Sunday, 6 for Saturday.
Returns Type Description
  boolean true if the given day is the last day of the month, otherwise false.

isLastWeek()
basedatepickerweek.isLastWeek();
Answers the question: Is this the last week of the month?
Returns Type Description
  boolean True if this is the last week of the month, otherwise false.

removeFocusFromDay()
basedatepickerweek.removeFocusFromDay(d);
Remove the focus from a day.
Parameter Name Type Description
d   The day of the week to focus on. 0 for Sunday, 6 for Saturday.

setStartingDay()
basedatepickerweek.setStartingDay(d, max, earlydate, latedate);
Sets daynum of each day in this week, starting with the first day of the week. Also sets the disabled and selectable attributes for each day as appropriate.
Parameter Name Type Description
d   The day of the month to set Sunday(0) to. Monday(1) through Saturday(6) will be set as appropriate.
max   The largest daynum that should be set. In other words, this should be the number of days in this month.
earlydate   The earliest day of the month that can be selected.
latedate   The latest day of the month that can be selected.

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy