Day Class

Used to render a day

Constructors

Day( parent, config )
Used to instantiate this class
parentDOM element in which to render this component
configConfiguration settings (optional)

Public Methods

hasHours( )
show( )
hide( )
showFooter( )
hideFooter( )
enableTouch( )
disableTouch( )
createColumnHeader( i )
Returns a div used to indicate the day of the week. The div is inserted into a column header that corresponds to a given date. This method can be safely overridden to generate custom headers.
createColumnFooter( i )
createHourLabel( hour )
Returns a div used to indicate the hour of day (e.g. 12pm). This method can be safely overridden to generate custom labels for hours.
scrollTo( hour )
Used to scroll to a specific time of day.
hourTime of day, specified as a decimal (e.g. 6.5 for 6:30 AM)
getScrollDiv( )
getEventStore( )
addEvent( event )
addEvents( events )
Used to add multiple events to the view. This method is recommended for bulk loading and is significantly faster than calling addEvent multiple times.
removeEvent( event )
getEvents( )
Returns an array of all the events rendered in the view.
clear( )
Used to remove all the events from the view.
refresh( )
Used to re-render all the events in the cell.
getDOM( )
next( )
back( )
setDate( d )
getDate( )
getDateRange( )
Returns the start/end dates represented by this view.
getTitle( )
Returns a title for the current view.
getCells( )
Returns an array of cells - one for each day in the view. A cell is defined by a date/id and a bounding rectangle. These cells are used when dragging events.