Package: | Ext.calendar |
Defined In: | DayView.js |
Class: | DayView |
Subclasses: | WeekView |
Extends: | Object |
Unlike other calendar views, is not actually a subclass of CalendarView. Instead it is a Container subclass that internally creates and manages the layouts of a DayHeaderView and a DayBodyView. As such DayView accepts any config values that are valid for DayHeaderView and DayBodyView and passes those through to the contained views. It also supports the interface required of any calendar view and in turn calls methods on the contained views as necessary.
Config Options | Defined By | |
---|---|---|
dayCount : Number The number of days to display in the view (defaults to 1) | DayView | |
ddCreateEventText : String The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to
'Creat... The text to display inside the drag proxy while dragging over the calendar to create a new event (defaults to
'Create event for {0}' where {0} is a date range supplied by the view) | DayView | |
ddMoveEventText : String The text to display inside the drag proxy while dragging an event to reposition it (defaults to
'Move event to {0}' ... The text to display inside the drag proxy while dragging an event to reposition it (defaults to
'Move event to {0}' where {0} is the updated event start date/time supplied by the view) | DayView | |
showTime : Boolean True to display the current time in today's box in the calendar, false to not display it (defautls to true) | DayView | |
showTodayText : Boolean True to display the todayText string in today's box in the calendar, false to not display it (defautls to true) | DayView | |
todayText : String The text to display in the current day's box in the calendar when showTodayText is true (defaults to 'Today') | DayView |
Method | Defined By | |
---|---|---|
DayView( Object config )
Parameters:
| DayView | |
getStartDate()
:
Date Returns the start date of the view, as set by setStartDate. Note that this may not
be the first date displayed in th... Returns the start date of the view, as set by setStartDate. Note that this may not
be the first date displayed in the rendered calendar -- to get the start and end dates displayed
to the user use getViewBounds. Parameters:
| DayView | |
isToday()
:
Boolean Returns true if the view is currently displaying today's date, else false. Returns true if the view is currently displaying today's date, else false. Parameters:
| DayView | |
moveDays( Number value )
:
voidShifts the view by the passed number of days relative to the currently set date Shifts the view by the passed number of days relative to the currently set date Parameters:
| DayView | |
moveNext()
:
void Updates the view to the next consecutive date(s) Updates the view to the next consecutive date(s) Parameters:
| DayView | |
movePrev()
:
void Updates the view to the previous consecutive date(s) Updates the view to the previous consecutive date(s) Parameters:
| DayView | |
moveTo( Date dt )
:
voidUpdates the view to contain the passed date Updates the view to contain the passed date Parameters:
| DayView | |
moveToday()
:
void Updates the view to show today Updates the view to show today Parameters:
| DayView | |
setStartDate( Date dt )
:
voidSets the start date used to calculate the view boundaries to display. The displayed view will be the
earliest and la... Sets the start date used to calculate the view boundaries to display. The displayed view will be the
earliest and latest dates that match the view requirements and contain the date passed to this function. Parameters:
| DayView |