Package | com.flexcalendar.components.calendar.utils |
Class | public class CalendarMode |
Inheritance | CalendarMode ![]() |
Method | Defined By | ||
---|---|---|---|
Throws error - should not be called. | CalendarMode |
Constant | Defined By | ||
---|---|---|---|
FREE_EDIT_MODE : int = 0 [static]
FREE_EDIT_MODE means that user can add, move, resize any item in any time. | CalendarMode | ||
LIMITED_EDIT_MODE : int = 1 [static]
[PRO-LICENCE-REQUIRED] - to use features marked as [PRO-LICENCE-REQUIRED] you need to purchase PRO licence of Flex Calendar Component. | CalendarMode | ||
READ_ONLY_MODE : int = 2 [static]
READ_ONLY_MODE means that user can only view the calendar. | CalendarMode |
CalendarMode | () | Constructor |
public function CalendarMode()
Throws error - should not be called.
FREE_EDIT_MODE | Constant |
public static const FREE_EDIT_MODE:int = 0
FREE_EDIT_MODE means that user can add, move, resize any item in any time.
There is no time limits - items can be added everywhere.
Items marked as read only are naturally locked.
If special spaces are added and Flex Calendar Component is working in FREE_EDIT_MODE
, spaces are out of interaction.
Component displays spaces in background in defined places, but they do not influence on regular items.
In this mode you can use spaces to mark and describe some special time in the schedule.
LIMITED_EDIT_MODE | Constant |
public static const LIMITED_EDIT_MODE:int = 1
[PRO-LICENCE-REQUIRED] - to use features marked as [PRO-LICENCE-REQUIRED] you need to purchase PRO licence of Flex Calendar Component.
LIMITED_EDIT_MODE means that user can add, move, resize any item only in special spaces.
Those spaces may be created by adding CalendarItem to CalendarItemSet using addItemAsSpace()
method.
There are two possible types of special spaces that may be added (ItemType.UNAVAILABLE_SPACE and ItemType.AVAILABLE_SPACE).
In LIMITED_EDIT_MODE
calendarItems may be placed inside spaces added as (ItemType.AVAILABLE_SPACE
)) only.
You may need to mark some space as unavailable (i. e. holiday) - add space as (ItemType.UNAVAILABLE_SPACE
) to achieve this behaviour.
See also
var itemSet:CalendarItemSet = new CalendarItemSet(); itemSet.addItemAsSpace(new CalendarItem(start, end, "Holidays", desc, readOnly, rendererColors), ItemType.UNAVAILABLE_SPACE); itemSet.addItemAsSpace(new CalendarItem(start1, end1, "Working hours", desc, readOnly, rendererColors), ItemType.AVAILABLE_SPACE);
READ_ONLY_MODE | Constant |
public static const READ_ONLY_MODE:int = 2
READ_ONLY_MODE means that user can only view the calendar. No actions are allowed.