Packagecom.flexcalendar.components.calendar.displayClasses.viewType
Classpublic class DefaultViewTypeStrategy
InheritanceDefaultViewTypeStrategy Inheritance Object
Implements IViewTypeStrategy

Default strategy for computing DAY or MONTH view.

See also

determine()


Public Properties
 PropertyDefined By
  maxDays : int
Maximum number of days in DAY view
DefaultViewTypeStrategy
Public Methods
 MethodDefined By
  
DefaultViewTypeStrategy(maxDays:int = 7)
As default, maxDays is set to 7
DefaultViewTypeStrategy
  
determine(range:DateRange):int
This simple strategy determines DAY view if requested less or equal than maxDays view, otherwise - MONTH view
DefaultViewTypeStrategy
Property Detail
maxDaysproperty
public var maxDays:int

Maximum number of days in DAY view

Constructor Detail
DefaultViewTypeStrategy()Constructor
public function DefaultViewTypeStrategy(maxDays:int = 7)

As default, maxDays is set to 7

Parameters
maxDays:int (default = 7)
Method Detail
determine()method
public function determine(range:DateRange):int

This simple strategy determines DAY view if requested less or equal than maxDays view, otherwise - MONTH view

Parameters

range:DateRange

Returns
int — value defined in ViewType class